Skip to main content
Version: 1.0.0

Interface IInventory

Namespace: OblivionMp.Sdk.Common.Archetypes.Mixins
Assembly: OblivionMp.Sdk.Common.dll

The item list of an entity, so one set of transfer rules serves a corpse and a chest.

public interface IInventory

Properties​

ItemsCount​

How many entries the inventory holds.

int ItemsCount { get; }

Property Value​

int

Methods​

AddItems(in InventoryEntry)​

Adds value to the end of the inventory.

void AddItems(in InventoryEntry value)

Parameters​

value InventoryEntry

GetItems(int)​

The entry at index.

InventoryEntry GetItems(int index)

Parameters​

index int

Returns​

InventoryEntry

InsertItems(int, in InventoryEntry)​

Inserts value at index.

void InsertItems(int index, in InventoryEntry value)

Parameters​

index int

value InventoryEntry

RemoveAtItems(int)​

Removes the entry at index and returns it.

InventoryEntry RemoveAtItems(int index)

Parameters​

index int

Returns​

InventoryEntry

  • Properties
    • ItemsCount
  • Methods
    • AddItems(in InventoryEntry)
    • GetItems(int)
    • InsertItems(int, in InventoryEntry)
    • RemoveAtItems(int)