Interface IInventory
Represents an inventory.
Namespace: OpenMod.Extensions.Games.Abstractions.Items
Assembly: OpenMod.Extensions.Games.Abstractions.dll
Syntax
public interface IInventory : IReadOnlyCollection<IInventoryPage>
Properties
| Improve this Doc View SourceIsFull
Checks if the inventory is full.
Declaration
bool IsFull { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Pages
Gets the pages of the inventory. Page support depends on the game and owner object. Some games and objects only suppport a single page.
Declaration
IReadOnlyCollection<IInventoryPage> Pages { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IInventoryPage> |
Examples
In the game Unturned, the player inventory consists of multiple pages. These pages
are:
* Clothing slots
* Primary slot
* Secondary slot
* Clothing pages