Table of Contents

Struct AttributeChangeInfo

Namespace
ElectricDrill.SoapRpgFramework.Attributes
Assembly
com.electricdrill.soap-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

Constructors

AttributeChangeInfo(EntityAttributes, Attribute, long, long)

Initializes a new instance of the AttributeChangeInfo structure.

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

Parameters

entityAttributes EntityAttributes

The EntityAttributes instance that owns the changed attribute

attribute Attribute

The attribute that was changed

oldValue long

The previous value before the change

newValue long

The new value after the change

Properties

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

OldValue

Gets the previous value of the attribute before the change.

public long OldValue { get; }

Property Value

long