Skip to content

API Interface TriggerWorld

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: TriggerWorld

Defined in: src/engine/input/triggers.ts:26

What a trigger can ask about other actions (bare names are of its own set; "set.Id:action" names another's): their final flags this frame. The evaluator resolves the actions a trigger reads before the mappings that read them; only an action in a dependency cycle reads the cycle's other actions as they were last frame.

Methods

performed()

performed(action): boolean;

Defined in: src/engine/input/triggers.ts:30

Whether action performed.

Parameters

action

string

Returns

boolean


triggered()

triggered(action): boolean;

Defined in: src/engine/input/triggers.ts:28

Whether action is triggered (level).

Parameters

action

string

Returns

boolean

Clone this wiki locally