Class VariableCondition<Condition>

Type Parameters

Hierarchy

Constructors

  • If a specific variable has or is equal to a property.

    Type Parameters

    • Condition extends "IsNear" | "ItemEquals" | "=" | "<=" | "DictValueEquals" | "ItemHasTag" | "StartsWith" | "ListValueEq" | "VarIsType" | "TextMatches" | "VarExists" | "Legacy!=" | "ListContains" | "Legacy=" | "InRange" | "LocIsNear" | "Contains" | "!=" | "<" | ">" | "EndsWith" | ">=" | "DictHasKey"

    Parameters

    • condition: Condition

      Condition to match for.

    • Rest ...args: DFValueType[]

      Arguments to pass.

    Returns VariableCondition<Condition>

Properties

_componentName: string = "serializable"

The component's name

action: Condition

The action to check for.

args: DFValueType[]

Arguments to pass.

closingBracket: default<"norm", "close"> = ...

Reference property to the closing bracket of this conditional block.

isInverted: boolean = false

If the condition is inverted.

openingBracket: default<"norm", "open"> = ...

Reference property to the opening bracket of this conditional block.

tags: BLTagArray<"if_var", Condition> = ...

The tags of the action on this conditional block.

Remark

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

target: DFTarget = ...

Target of the action.

type: "if_var"

Type of the codeblock.

Methods

  • Parameters

    • raw: RawDFConditionalBlock<"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">

    Returns readonly [RawDFConditionalBlock<"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">, RawDFBracketBlock<DFBracketBlockType, "open">, DFAnySerializedBlock, RawDFBracketBlock<DFBracketBlockType, "close">]

Generated using TypeDoc