Inventory System
Search Results for

    Show / Hide Table of Contents

    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 Source

    IsEmpty

    Whether an IItem is assigned to this IInventorySlot with a Quantity not equal 0.

    Declaration
    bool IsEmpty { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsFull

    Check if the Quantity greater than or equal to the assigned IItems MaxStackAmount.

    Declaration
    bool IsFull { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Item

    Get IItem assigned to this IInventorySlot.

    Declaration
    IItem Item { get; }
    Property Value
    Type Description
    IItem
    | Edit this page View Source

    Quantity

    Get quantity of Item in this IInventorySlot.

    Declaration
    int Quantity { get; }
    Property Value
    Type Description
    int
    Remarks

    Quantity is limited by MaxStackAmount.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX