Table of Contents

Struct AttributeChangeInfo

Namespace
ElectricDrill.AstraRpgFramework.Attributes
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Immutable structure that contains information about an attribute value change. Used to track and communicate attribute modifications across the system.

public readonly struct AttributeChangeInfo : IHasValueChange<long>
Implements

Constructors

AttributeChangeInfo(EntityAttributes, Attribute, long, long)

Initializes a new instance of the AttributeChangeInfo structure.

public AttributeChangeInfo(EntityAttributes entityAttributes, Attribute attribute, long previousValue, long newValue)

Parameters

entityAttributes EntityAttributes

The EntityAttributes instance that owns the changed attribute

attribute Attribute

The attribute that was changed

previousValue long

previous value before the change

newValue long

The new value after the change

Properties

AbsAmount

The absolute amount of change between PreviousValue and NewValue.

public long AbsAmount { get; }

Property Value

long

Attribute

Gets the attribute that was changed.

public Attribute Attribute { get; }

Property Value

Attribute

EntityAttributes

Gets the EntityAttributes instance that owns the changed attribute.

public EntityAttributes EntityAttributes { get; }

Property Value

EntityAttributes

NewValue

Gets the new value of the attribute after the change.

public long NewValue { get; }

Property Value

long

PreviousValue

Gets the previous value of the attribute before the change.

public long PreviousValue { get; }

Property Value

long