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
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
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
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
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