Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

SimpleStateMachine/SimpleStateMachineLibrary

Repository files navigation

NuGet Pre ReleaseNuGet DownloadsBuild Status

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 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();

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 githubissue.

But if you just have questions about how to use:

License📑

Copyright (c) SimpleStateMachine

Licensed under theMIT license.

Sponsor this project

    Packages

    No packages published

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp