logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HittableHitSignal

    Signal dispatched when a hittable takes a hit that is not ignored.

    Inheritance
    object
    HittableHitSignal
    Namespace: Serenity.Hittable.Application.Events
    Assembly: Serenity.Hittable.Application.dll
    Syntax
    public class HittableHitSignal : EventDispatcherSignal

    Constructors

    HittableHitSignal()

    Initializes a new instance of the HittableHitSignal class.

    Declaration
    public HittableHitSignal()

    HittableHitSignal(string, int, int)

    Initializes a new instance of the HittableHitSignal class.

    Declaration
    public HittableHitSignal(string hittableId, int damage, int remainingHealth)
    Parameters
    Type Name Description
    string hittableId

    The identity of the hittable that was hit.

    int damage

    The damage applied by the hit.

    int remainingHealth

    The remaining health after the hit. -1 when the hittable is indestructible.

    Fields

    Damage

    The damage applied by the hit.

    Declaration
    public readonly int Damage
    Field Value
    Type Description
    int

    HittableId

    The identity of the hittable that was hit.

    Declaration
    public readonly string HittableId
    Field Value
    Type Description
    string

    RemainingHealth

    The remaining health after the hit. -1 when the hittable is indestructible.

    Declaration
    public readonly int RemainingHealth
    Field Value
    Type Description
    int

    Methods

    ToString()

    Returns a string representation of the event.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved