Class EntityDiedContext
- Namespace
- ElectricDrill.AstraHealth.Events.Contexts
- Assembly
- com.electricdrill.astra-health.Runtime.dll
public class EntityDiedContext : IHasEntity, IHasVictim, IHasTarget, IHasPerformer, IHasAmount, IHasInstigator, IReactable
- Inheritance
-
objectEntityDiedContext
- Implements
-
IHasEntityIHasVictimIHasTargetIHasPerformerIHasInstigator
Constructors
EntityDiedContext(EntityCore, EntityCore, DamageResolutionContext)
public EntityDiedContext(EntityCore victim, EntityCore performer, DamageResolutionContext damageResolutionContext)
Parameters
victimEntityCoreperformerEntityCoredamageResolutionContextDamageResolutionContext
Properties
DamageResolutionContext
public DamageResolutionContext DamageResolutionContext { get; }
Property Value
Entity
public EntityCore Entity { get; }
Property Value
- EntityCore
Instigator
The specific thing that caused the killing blow — propagated from the originating
DamageResolutionContext. May be null if unspecified.
public IEffectInstigator Instigator { get; }
Property Value
- IEffectInstigator
IsReactable
Propagated from the lethal IsReactable.
When false, the killing blow was itself a secondary effect and reactive systems
(such as counter-damage-on-death actions) should not respond to this death event.
public bool IsReactable { get; }
Property Value
- bool
Performer
The entity that was responsible for the death of the Victim.
public EntityCore Performer { get; }
Property Value
- EntityCore
Target
The killed entity. Same as Victim in this case.
public EntityCore Target { get; }
Property Value
- EntityCore
Victim
The entity that died.
public EntityCore Victim { get; }
Property Value
- EntityCore