Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork14
📚 A simple library for realization state machines in C# code
License
SimpleStateMachine/SimpleStateMachineLibrary
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A C# library for realization simple state-machine on .Net
If you like or are using this project please give it a star. Thanks!
Create state machine inthree steps :
1. Create scheme innode editor🔗 and load it in your project usingthis library📚
StateMachinestateMachine=newStateMachine("scheme.xml");
2. Describe your app logic on events⚡
stateMachine.GetState("State1").OnExit(Action1);stateMachine.GetState("State2").OnEntry(Action2);stateMachine.GetTransition("Transition1").OnInvoke(Action3);stateMachine.OnChangeState(Action4);
3. Run the state machine🚘
stateMachine.Start();
State machine properties:
- Start state
- Entry/exit events for state
- Invoke event for transition
- Parameters for transitions
- Parameters for entry/exit for state
Useful extensions for work:
- State changed event for state machine
- Data for sharing between states
- Change event for data
- Export/Import to/from XML
- Logging
Install from Nuget:
Install-Package SimpleStateMachineLibrary
Documentation here:https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki
If you think you have found a bug, create a githubissue.
But if you just have questions about how to use:
Copyright (c) SimpleStateMachine
Licensed under theMIT license.
About
📚 A simple library for realization state machines in C# code
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.