Skip to content

1681-engine / index / AnimStateMachineOptions

Interface: AnimStateMachineOptions<State, Clip, P> ​

Defined in: src/anim/animStateTypes.ts:42

Type Parameters ​

Type Parameter
State extends string
Clip extends string
P extends AnimParams

Properties ​

initial ​

ts
initial: NoInfer<State>;

Defined in: src/anim/animStateTypes.ts:43


keepTriggers? ​

ts
optional keepTriggers?: boolean;

Defined in: src/anim/animStateTypes.ts:52

Keep a trigger no transition used until one does (default false: cleared at the end of every update). Off by default because a press that changed nothing now — a jump pressed in mid-air — should not play out later, on landing.


params? ​

ts
optional params?: P;

Defined in: src/anim/animStateTypes.ts:45


states ​

ts
states: Record<State, AnimStateDef<Clip>>;

Defined in: src/anim/animStateTypes.ts:44


transitions? ​

ts
optional transitions?: readonly AnimTransition<NoInfer<State>, NoInfer<P>>[];

Defined in: src/anim/animStateTypes.ts:46

Released under the MIT License.