Interface IActionDescription<A, E, R, CU, AV>

Type Parameters

Hierarchy

Implemented by

Properties

argumentTypes: A
flags: {
    0: undefined | boolean;
}

Type declaration

  • 0: undefined | boolean
hasSetCanUse: boolean

Check if the action has setup CanUse logic

modIndex?: number

Do not provide or modify this value, only reference it. This is set by the modding system during the process of registration.

type?: number
usability: {
    0: undefined | boolean;
    1: undefined | boolean;
    2: undefined | boolean;
    3: undefined | boolean;
    4: undefined | boolean;
}

Type declaration

  • 0: undefined | boolean
  • 1: undefined | boolean
  • 2: undefined | boolean
  • 3: undefined | boolean
  • 4: undefined | boolean
validExecutors: Set<EntityType>

Methods

  • Parameters

    • executor: E
    • Rest ...args: AV

    Returns CU | IActionNotUsable

  • Called internally during execute

    Parameters

    Returns Promise<boolean>

  • Parameters

    • actionApiOrExecutor: E | IActionApi<E, CU>
    • Rest ...args: AV

    Returns R | Promise<R>

  • Parameters

    Returns Promise<boolean>

  • Parameters

    • executor: E
    • Rest ...args: AV

    Returns undefined | IActionExample

  • Called internally during execute

    Parameters

    Returns R

  • Called internally during execute

    Parameters

    Returns any

Generated using TypeDoc