Skip to main content
Version: 0.4.1

Struct AttributesState

Namespace: ReadyM.Wukong.Common.ECS.Values
Assembly: ReadyM.Wukong.Common.dll

Entity attributes. Keys correspond to the EBGUAttrFloat enum in the game.

public struct AttributesState : INetSerializable

Implements​

INetSerializable

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

AttributesState()​

Entity attributes. Keys correspond to the EBGUAttrFloat enum in the game.

public AttributesState()

AttributesState(Dictionary<byte, float>?)​

public AttributesState(Dictionary<byte, float>? data)

Parameters​

data Dictionary<byte, float>?

Methods​

DeltaEquals(AttributesState, float)​

public bool DeltaEquals(AttributesState other, float delta)

Parameters​

other AttributesState

delta float

Returns​

bool

Deserialize(NetDataReader)​

public void Deserialize(NetDataReader reader)

Parameters​

reader NetDataReader

GetAttribute(byte)​

public float GetAttribute(byte attr)

Parameters​

attr byte

Returns​

float

GetEnumerator()​

public IEnumerator<KeyValuePair<byte, float>> GetEnumerator()

Returns​

IEnumerator<KeyValuePair<byte, float>>

Serialize(NetDataWriter)​

public void Serialize(NetDataWriter writer)

Parameters​

writer NetDataWriter

ToDictionary()​

public Dictionary<byte, float> ToDictionary()

Returns​

Dictionary<byte, float>

TryGetAttribute(byte, out float)​

public bool TryGetAttribute(byte key, out float value)

Parameters​

key byte

value float

Returns​

bool

WithSetAttribute(byte, float)​

public AttributesState WithSetAttribute(byte key, float value)

Parameters​

key byte

value float

Returns​

AttributesState

  • Constructors
    • AttributesState()
    • AttributesState(Dictionary<byte, float>?)
  • Methods
    • DeltaEquals(AttributesState, float)
    • Deserialize(NetDataReader)
    • GetAttribute(byte)
    • GetEnumerator()
    • Serialize(NetDataWriter)
    • ToDictionary()
    • TryGetAttribute(byte, out float)
    • WithSetAttribute(byte, float)