SerenityJS
    Preparing search index...
    Index

    Constructors

    Properties

    creativeGroups: Map<number, CreateContentGroup> = CreateContentGroup.groups

    The creative content for the palette.

    traits: Map<string, typeof ItemTrait> = ...

    The registered item traits for the palette.

    types: Map<string, ItemType> = ItemType.types

    The registered item types for the palette.

    Methods

    • Register an item for a creative content group.

      Parameters

      • group: CreativeItemGroup

        The creative content group.

      • type: ItemType

        The item type to register.

      Returns void

      The creative content group.

    • Unregister a creative group from the palette.

      Parameters

      • value: string | number

        The index or identifier of the creative group to unregister.

      Returns void

    • Unregister an item trait from the palette.

      Parameters

      • ...types: (string | typeof ItemTrait)[]

        The item trait to unregister, or the identifier of the item trait.

      Returns this

      The item palette instance.