Crate game_state_machine

Source
Expand description

A generic stack-based state machine. This state machine contains a stack of states and handles transitions between them. StateTransition happen based on the return value of the currently running state’s functions. Only one state can run at once.

Structs§

  • A state machine that holds the stack of states and performs transitions between states. It can be created using

Enums§

Traits§

  • Trait that states must implement.