Class ActionBlock<T, Action, Target>Abstract

Type Parameters

Hierarchy

Constructors

  • Create a new action codeblock.

    Type Parameters

    • T extends "repeat" | "call_func" | "func" | "start_process" | "process" | "player_action" | "if_player" | "control" | "set_var" | "entity_event" | "event" | "if_entity" | "entity_action" | "if_var" | "select_obj" | "game_action" | "else" | "if_game"

    • Action extends string

    • Target extends DFTarget = DFTarget

    Parameters

    • type: T

      Type of the codeblock.

    • action: Action

      The action to perform.

    • args: DFValueType[]

      Arguments to pass.

    • isInverted: boolean = false

      If the codeblock is inverted (mostly for conditional blocks).

    • target: Target = ...

      The target for the action.

    Returns ActionBlock<T, Action, Target>

Properties

_componentName: string = "serializable"

The component's name

action: Action

The action to perform.

args: DFValueType[]

Arguments to pass.

isInverted: boolean = false

If the codeblock is inverted (mostly for conditional blocks).

tags: BLTagArray<T, Action> = ...

The tags of the action on this action block.

Remark

Will be an empty array if the action has no tags.

target: Target = ...

The target for the action.

type: T

Type of the codeblock.

Methods

  • Invert into a 'NOT' action (mostly for conditional blocks).

    Returns

    True if inverted, otherwise false.

    Returns boolean

Generated using TypeDoc