Class EntityMaxHealthChangedContext
- Namespace
- ElectricDrill.AstraHealth.Events.Contexts
- Assembly
- com.electricdrill.astra-health.Runtime.dll
public class EntityMaxHealthChangedContext : IHasEntity, IHasTarget, IHasValueChange<long>
- Inheritance
-
objectEntityMaxHealthChangedContext
- Implements
-
IHasEntityIHasTargetIHasValueChange<long>
Constructors
EntityMaxHealthChangedContext(EntityCore, long, long)
public EntityMaxHealthChangedContext(EntityCore target, long previousValue, long newValue)
Parameters
targetEntityCorepreviousValuelongnewValuelong
Properties
AbsAmount
The absolute amount of change between PreviousValue and NewValue.
public long AbsAmount { get; }
Property Value
- long
Entity
The entity whose max health changed. Same as Target in this case.
public EntityCore Entity { get; }
Property Value
- EntityCore
NewValue
public long NewValue { get; }
Property Value
- long
PreviousValue
public long PreviousValue { get; }
Property Value
- long
Target
The entity whose max health changed.
public EntityCore Target { get; }
Property Value
- EntityCore