State Control v0.1.0

State Control v0.1.0

This shard provides a flexible state machine implementation in Crystal programming language.

You can use any enum to describe different states and use the StateControl(T) class with that enum to create your own specific state machine class.

The StateControl(T) class allows you to manage transitions between states, track transition history, and monitor time spent in each state. By using this shard, you have the flexibility to define and use your own enums and state machine classes tailored to your specific needs.

9 Likes

Huh, nice looking inspection features!
I have a shard for compile-time generated state machines (GitHub - konovod/ctsm: compile-time generated FSMs for fun and profit), but never tried it in something real.

1 Like