GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - GerHobbelt/SimpleStateMachineLibrary: 📚 A simple library for realization state machines in C# code

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

103 Commits
103 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Examples
Examples
 
 
SimpleStateMachineLibrary
SimpleStateMachineLibrary
 
 
Tests
Tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SimpleStateMachineLibrary.sln
SimpleStateMachineLibrary.sln
 
 

Repository files navigation

NuGet Pre Release NuGet Downloads

SimpleStateMachineLibrary

A C# library for realization simple state-machine on .Net

Give a Star! ⭐

If you like or are using this project please give it a star. Thanks!

Why SimpleStateMachine?

Create state machine in three steps :

1. Create scheme in node editor🔗 and load it in your project using this library📚

StateMachine stateMachine = new StateMachine("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();

Features💡

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

Getting Started📂

Install from Nuget:

 Install-Package SimpleStateMachineLibrary 

Documentation📄

Documentation here: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki

FAQ❔

If you think you have found a bug, create a github issue.

But if you just have questions about how to use:

  • Slack channel
  • Telegram channel

License📑

Copyright (c) SimpleStateMachine

Licensed under the MIT license.

About

📚 A simple library for realization state machines in C# code

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.