Create a basic usable action:

UsableAction.create({...definition});

If your action has item/doodad/creature/npc requirements:

UsableAction.requiring({...requirements})
.create({...definition});

To learn about action definitions, see IUsableActionDefinitionBase

Type Parameters

Hierarchy

Constructors

  • Type Parameters

    Parameters

    • requirements: REQUIREMENTS
    • definition: DEFINITION

    Returns default<REQUIREMENTS, DEFINITION>

Properties

definition: DEFINITION
event: IEventEmitter<default<REQUIREMENTS, DEFINITION>, IUsableActionEvents>
observe: IRegistrar<default<REQUIREMENTS, DEFINITION>> = ...
requirements: REQUIREMENTS

Accessors

Methods

  • Returns boolean

  • Returns boolean

  • Returns undefined | ActionType

  • Parameters

    Returns boolean

Generated using TypeDoc