StateMachineSystem

EntitySystemceramic.StateMachineSystem (Class)

System that manages and updates all active state machines.

StateMachineSystem is responsible for automatically updating all state machines that have autoUpdate enabled. It runs during the late update phase to ensure state machines are updated after regular entity updates.

Features:

  • Automatic registration of state machines
  • Safe iteration during updates (handles additions/removals)
  • Configurable update order via lateUpdateOrder
  • Singleton pattern with shared instance

This system is automatically used by all StateMachine instances and typically doesn't need to be interacted with directly.

Static Members

Shared state machine system

Private Members

stateMachines: Array<StateMachineBase>

lateUpdate(delta: Float): Void
Name Type
delta Float

new(): Void

Metadata

Name Parameters
:build tracker.macros.EventsMacro.build()
:autoBuild tracker.macros.EventsMacro.build()
:build ceramic.macros.EntityMacro.buildForCompletion()
:autoBuild ceramic.macros.EntityMacro.buildForCompletion()
:allow ceramic.StateMachineBase