Table of Contents

Class EntityHealthChangedContext

Namespace
ElectricDrill.AstraHealth.Events.Contexts
Assembly
com.electricdrill.astra-health.Runtime.dll
public class EntityHealthChangedContext : IHasEntity, IHasTarget, IHasValueChange<long>
Inheritance
object
EntityHealthChangedContext
Implements
IHasEntity
IHasTarget
IHasValueChange<long>

Constructors

EntityHealthChangedContext(EntityCore, long, long)

public EntityHealthChangedContext(EntityCore target, long previousValue, long newValue)

Parameters

target EntityCore
previousValue long
newValue long

Properties

AbsAmount

The absolute amount of change between PreviousValue and NewValue.

public long AbsAmount { get; }

Property Value

long

Entity

The entity whose 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 health changed.

public EntityCore Target { get; }

Property Value

EntityCore