Interface IInventorySlot
An inventory slot in an IInventory, which manages one IItem with a certain Quantity.
Namespace: InventorySystem.Inventory
Assembly: InventorySystem.dll
Syntax
public interface IInventorySlot
Properties
| Edit this page View SourceIsEmpty
Whether an IItem is assigned to this IInventorySlot with a Quantity not equal 0.
Declaration
bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsFull
Check if the Quantity greater than or equal to the assigned IItems MaxStackAmount.
Declaration
bool IsFull { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Item
Get IItem assigned to this IInventorySlot.
Declaration
IItem Item { get; }
Property Value
| Type | Description |
|---|---|
| IItem |
Quantity
Get quantity of Item in this IInventorySlot.
Declaration
int Quantity { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Quantity is limited by MaxStackAmount.