Class HittableHitSignal
Signal dispatched when a hittable takes a hit that is not ignored.
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 |