Skip to main content
Version: 0.1.1

Struct EquipmentComponent

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

Holds the player's equipment.

public struct EquipmentComponent : ISaveTaggedComponent<EquipmentComponent>, IComponent, INetSerializable, IDisposable

Implements​

ISaveTaggedComponent<EquipmentComponent>, IComponent, INetSerializable, IDisposable

Inherited Members​

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

Constructors​

EquipmentComponent(AllocatorKind)​

Holds the player's equipment.

public EquipmentComponent(AllocatorKind allocatorKind)

Parameters​

allocatorKind AllocatorKind

Properties​

ItemsCount​

public int ItemsCount { get; }

Property Value​

int

Methods​

AddItems(in InventoryEntry)​

public void AddItems(in InventoryEntry value)

Parameters​

value InventoryEntry

Assign(in EquipmentComponent)​

public void Assign(in EquipmentComponent value)

Parameters​

value EquipmentComponent

ClearItems()​

public void ClearItems()

ContainsItems(in InventoryEntry)​

public bool ContainsItems(in InventoryEntry value)

Parameters​

value InventoryEntry

Returns​

bool

Deserialize(NetDataReader)​

public void Deserialize(NetDataReader reader)

Parameters​

reader NetDataReader

Dispose()​

public void Dispose()

GetItems()​

public NativeList<InventoryEntry>.ReadOnly GetItems()

Returns​

NativeList<InventoryEntry>.ReadOnly

GetItems(int)​

public InventoryEntry GetItems(int index)

Parameters​

index int

Returns​

InventoryEntry

InsertItems(int, in InventoryEntry)​

public void InsertItems(int index, in InventoryEntry value)

Parameters​

index int

value InventoryEntry

RemoveAtItems(int)​

public InventoryEntry RemoveAtItems(int index)

Parameters​

index int

Returns​

InventoryEntry

Serialize(NetDataWriter)​

public void Serialize(NetDataWriter writer)

Parameters​

writer NetDataWriter

SetItems(in NativeList<InventoryEntry>)​

public void SetItems(in NativeList<InventoryEntry> value)

Parameters​

value NativeList<InventoryEntry>

SetItems(int, in InventoryEntry)​

public void SetItems(int index, in InventoryEntry value)

Parameters​

index int

value InventoryEntry

  • Constructors
    • EquipmentComponent(AllocatorKind)
  • Properties
    • ItemsCount
  • Methods
    • AddItems(in InventoryEntry)
    • Assign(in EquipmentComponent)
    • ClearItems()
    • ContainsItems(in InventoryEntry)
    • Deserialize(NetDataReader)
    • Dispose()
    • GetItems()
    • GetItems(int)
    • InsertItems(int, in InventoryEntry)
    • RemoveAtItems(int)
    • Serialize(NetDataWriter)
    • SetItems(in NativeList<InventoryEntry>)
    • SetItems(int, in InventoryEntry)