Skip to content

stepFsm

stepFsm<Ctx>(fsm, run, ctx, bb, registry): boolean

Defined in: ai/fsm/FsmRunner.ts:45

Advance one tick. Returns true if a transition was taken. The new state’s onEnter runs on the following tick (via entered=false), so a pass-through state cleanly enters-then-exits across two ticks rather than looping.

Ctx

CompiledFsm

FsmRunState

Ctx

Blackboard

AiRegistry<Ctx>

boolean