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
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
Deserialize(NetDataReader)
public void Deserialize(NetDataReader reader)
Parameters
reader NetDataReader
GetAttribute(byte)
public float GetAttribute(byte attr)
Parameters
attr byte
Returns
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
TryGetAttribute(byte, out float)
public bool TryGetAttribute(byte key, out float value)
Parameters
key byte
value float
Returns
WithSetAttribute(byte, float)
public AttributesState WithSetAttribute(byte key, float value)
Parameters
key byte
value float