Skip to main content

Interface: InputsSnapshot

Defined in: src/interaction/StateMachine.ts:17

Read-only view of the input values at the moment a guard is evaluated. A Guard reads inputs only through this snapshot, so guards stay pure and deterministic.

Methods​

get()​

get(name): InputValue

Defined in: src/interaction/StateMachine.ts:19

The current bool or number value, or undefined for an unknown input.

Parameters​

name​

string

Returns​

InputValue


isTriggered()​

isTriggered(name): boolean

Defined in: src/interaction/StateMachine.ts:21

Whether a trigger input is pending for this evaluation.

Parameters​

name​

string

Returns​

boolean