Skip to content

Commit 348a236

Browse files
Update README.md
1 parent 0e41477 commit 348a236

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11

22
# SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary)
33
A C# library for realization simple state-machine on .Net
4-
Create state machine in three steps :
5-
1. Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary)
4+
5+
Create state machine in **three** steps :
6+
**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary)
67
```C#
78
StateMachine stateMachine = new StateMachine("scheme.xml");
89
```
9-
2. Describe your app logic on events
10+
**2.** Describe your app logic on events
1011
```C#
1112
stateMachine.GetState("State1").OnExit(Action1);
1213
stateMachine.GetState("State2").OnEntry(Action2);
1314
stateMachine.GetTransition("Transition1").OnInvoke(Action3);
1415
stateMachine.OnChangeState(Action4);
1516
```
16-
3. Run the state machine
17+
**3.** Run the state machine
1718
```C#
1819
stateMachine.Start(parametersForStart);
1920
```

0 commit comments

Comments
 (0)