Skip to main content

TextItemRegister

Callable


  • Registers a typed extended item. This automatically creates the item's load, draw and click functions.


    Parameters

    • asset: Asset

      The asset being registered

    • config: TextItemConfig

      The item's typed item configuration

    • parentOption: ExtendedItemOption = null
    • createCallbacks: boolean = true

      Whether the archetype-specific callbacks should be created or not

    Returns TextItemData

    • The generated extended item data for the asset