An open API service indexing awesome lists of open source software.

https://github.com/netpyoung/nf.state-flow

Generate statemachine.autogne.cs, output.puml from .ss
https://github.com/netpyoung/nf.state-flow

code-generator dotnet netpyoung-nf puml schemy workflow

Last synced: about 2 months ago
JSON representation

Generate statemachine.autogne.cs, output.puml from .ss

Awesome Lists containing this project

README

        

nf.state-flow
=============

[flow.puml](flow.puml)

![flow.png](flow.png)

# introduce

this is sample stateflow. When I making a game(in unity), I want generate state class and uml for share. so I'm writing custom class generator, and uml exporter for that work.

It inspired by [bitcraftCoLtd/finite-state-machine](https://github.com/bitcraftCoLtd/finite-state-machine). you will like that also.

# flow

1. input_state.ss

```scheme
(def-fsm HelloFSM
(GenerateColor (EvtNext (color) ValidateColor))

(ValidateColor (EvtInvalid () GenerateColor))
(ValidateColor (EvtValid (color) DisplayColor))

(DisplayColor (EvtNext () GenerateColor))
)
```

2. `rake`

3. [output.puml](output.puml)

![output.png](output.png)

3. [example.cs](unity_project/Assets/example.cs)

# TODO
* unity preference - auto execute plugin
* refactoring macro
* doc
* make distributable

# ref
* https://www.planttext.com/
* [Microsoft/schemy](https://github.com/Microsoft/schemy)