logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CharacterHitSignal

    Signal dispatched when a character takes a hit. Contains generic hit data: the character's identity and whether this hit killed the character. Specialized character types (e.g., Character) can extend this signal to add type-specific payload fields.

    Inheritance
    object
    CharacterHitSignal
    Namespace: Serenity.Character.Application.Events
    Assembly: Serenity.Character.Application.dll
    Syntax
    public class CharacterHitSignal : EventDispatcherSignal

    Constructors

    CharacterHitSignal(CharacterId, bool)

    Creates a new CharacterHitSignal.

    Declaration
    public CharacterHitSignal(CharacterId characterId, bool wasKilled)
    Parameters
    Type Name Description
    CharacterId characterId

    The identity of the hit character.

    bool wasKilled

    True if this hit killed the character.

    Fields

    CharacterId

    The identity of the character that was hit.

    Declaration
    public readonly CharacterId CharacterId
    Field Value
    Type Description
    CharacterId

    WasKilled

    True if this hit killed the character.

    Declaration
    public readonly bool WasKilled
    Field Value
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved