SerenityJS
    Preparing search index...

    Class PlayerCursorTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    container: EntityContainer

    The container that holds the inventory items.

    containerId: ContainerId = ContainerId.Ui

    The identifier of the container that this trait represents.

    containerType: ContainerType = ContainerType.Inventory

    The type of container that this trait represents.

    entity: Entity

    The entity that this trait is attached to.

    identifier: string = ...

    The identifier of the trait.

    inventorySize: number = 1

    The amount of slots in the inventory.

    player: Player = ...

    The player that this trait is attached to.

    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: "cursor"

    The identifier of the trait.

    types: EntityIdentifier[] = ...

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

    Accessors

    Methods