flame_state_machine 3.1.1
flame_state_machine: ^3.1.1 copied to clipboard
A lightweight, type-safe state machine for the Flame game engine, enabling modular and reusable behavior for Flame components.
3.1.1 #
- Improved documentation
- Updated dart sdk to ^3.12.2
- Replaced StateTransition.global static method with factory constructor
3.1.0 #
- Added
changeState()to allow manual state changes without transition evaluation. - Updated documentation.
3.0.0 #
- BREAKING: Introduced
StateMatchfor more flexible state transition matching. - BREAKING: Removed reverse transitions. Transitions must now be explicitly defined.
- Added
onRenderDebugMode()lifecycle method toStatefor debug-only rendering. - Added transition management methods to
StateMachine. - Improved documentation and updated examples.
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.dev 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