SerenityJS
    Preparing search index...

    Class EntityInventoryTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    container: EntityContainer

    The container that holds the inventory items.

    entity: Entity

    The entity that this trait is attached to.

    identifier: string = ...

    The identifier of the trait.

    opened: boolean = false

    Whether the container is opened or not.

    selectedSlot: number = 0

    The selected slot in the inventory.

    components: string[] = ...

    The entity component identifiers that this trait is compatible with by default. If empty, the trait will not be initialized by any component.

    identifier: "inventory"

    The identifier of the trait.

    types: EntityIdentifier[] = ...

    The entity type identifiers that this trait is compatible with by default.

    Accessors

    Methods