Skip to main content
Version: 0.2.0

Struct SkillAttributesComponent

Namespace: ReadyM.Relay.Common.Oblivion.ECS.Components
Assembly: ReadyM.Relay.Common.Oblivion.dll

Holds the player character's skill attributes.

public struct SkillAttributesComponent : ISaveTaggedComponent<SkillAttributesComponent>, INativeInit, IComponent, INetSerializable, IDisposable

Implements​

ISaveTaggedComponent<SkillAttributesComponent>, INativeInit, IComponent, INetSerializable, IDisposable

Inherited Members​

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

Properties​

AttributeCount​

public int AttributeCount { get; }

Property Value​

int

Methods​

AddAttribute(in byte, in float)​

public bool AddAttribute(in byte key, in float value)

Parameters​

key byte

value float

Returns​

bool

Assign(in SkillAttributesComponent)​

public void Assign(in SkillAttributesComponent value)

Parameters​

value SkillAttributesComponent

AttributeNotifyChanged(int)​

public void AttributeNotifyChanged(int id)

Parameters​

id int

Attribute_SetFromApi(NativeDictionary<byte, float, ByteHash>, int)​

public void Attribute_SetFromApi(NativeDictionary<byte, float, ByteHash> value, int id)

Parameters​

value NativeDictionary<byte, float, ByteHash>

id int

ClearAttribute()​

public void ClearAttribute()

ContainsAttribute(in byte, in float)​

public bool ContainsAttribute(in byte key, in float value)

Parameters​

key byte

value float

Returns​

bool

ContainsAttributeKey(in byte)​

public bool ContainsAttributeKey(in byte key)

Parameters​

key byte

Returns​

bool

Deserialize(NetDataReader)​

public void Deserialize(NetDataReader reader)

Parameters​

reader NetDataReader

Dispose()​

public void Dispose()

GetAttribute()​

public NativeDictionary<byte, float, ByteHash>.ReadOnly GetAttribute()

Returns​

NativeDictionary<byte, float, ByteHash>.ReadOnly

GetAttribute(in byte)​

public float GetAttribute(in byte key)

Parameters​

key byte

Returns​

float

GetChangeComponent()​

public Type GetChangeComponent()

Returns​

Type

Init(AllocatorKind)​

public void Init(AllocatorKind allocatorKind)

Parameters​

allocatorKind AllocatorKind

RemoveAttribute(in byte)​

public bool RemoveAttribute(in byte key)

Parameters​

key byte

Returns​

bool

Serialize(NetDataWriter)​

public void Serialize(NetDataWriter writer)

Parameters​

writer NetDataWriter

SetAttribute(in NativeDictionary<byte, float, ByteHash>)​

public void SetAttribute(in NativeDictionary<byte, float, ByteHash> value)

Parameters​

value NativeDictionary<byte, float, ByteHash>

SetAttribute(in byte, in float)​

public void SetAttribute(in byte key, in float value)

Parameters​

key byte

value float

TryGetAttributeValue(in byte, out float)​

public bool TryGetAttributeValue(in byte key, out float value)

Parameters​

key byte

value float

Returns​

bool

  • Properties
    • AttributeCount
  • Methods
    • AddAttribute(in byte, in float)
    • Assign(in SkillAttributesComponent)
    • AttributeNotifyChanged(int)
    • Attribute_SetFromApi(NativeDictionary<byte, float, ByteHash>, int)
    • ClearAttribute()
    • ContainsAttribute(in byte, in float)
    • ContainsAttributeKey(in byte)
    • Deserialize(NetDataReader)
    • Dispose()
    • GetAttribute()
    • GetAttribute(in byte)
    • GetChangeComponent()
    • Init(AllocatorKind)
    • RemoveAttribute(in byte)
    • Serialize(NetDataWriter)
    • SetAttribute(in NativeDictionary<byte, float, ByteHash>)
    • SetAttribute(in byte, in float)
    • TryGetAttributeValue(in byte, out float)