flame_state_machine 2.0.3
flame_state_machine: ^2.0.3 copied to clipboard
A lightweight, type-safe state machine for the Flame game engine, enabling modular and reusable behavior for Flame components.
2.0.2 #
- Updated Documentation
2.0.1 #
- Fix Documentation
2.0.0 #
- Make
StateMachinea FlameComponentto leverage Flame's lifecycle. - Removed
HasStatesmixin. It's no longer needed since now update and render methods are managed by Flame.
1.2.0 #
- Added
onRendercallback toState, allowing state-specific rendering logic to be executed each frame. (b2a95f9)
1.1.0 #
- Added
onTransition()callback toStateMachinethat triggers whenever a state change occurs
1.0.5 #
- Added GitHub Actions CI badge to
README.md. - Added
topicsandissue_trackerfields topubspec.yamlfor improved pub.flutter-io.cn metadata. - Supressed Linter warning
avoid_printinside the example.
1.0.4 #
- Fixed: incorrect state parameter was being passed to the
onExit()callback.
1.0.3 #
- Added state check in
setStateto avoid redundant updates. - Fixed:
previousStatewas not being set properly. - Improve code readability and consistency.
1.0.2 #
- Refactored internal state transition logic for clarity and reuse (no functional changes).
- Replaced inline state updates with
setStatecalls in theStateMachineclass. - Added status badges to
README.mdfor better project visibility.
1.0.1 #
- Added example
- Updated documentation
1.0.0 #
- Initial release