Table of Contents

Class EntityMaxHealthChangedContext

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

Constructors

EntityMaxHealthChangedContext(EntityCore, long, long)

public EntityMaxHealthChangedContext(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 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