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
- Host: GitHub
- URL: https://github.com/netpyoung/nf.state-flow
- Owner: netpyoung
- License: mit
- Created: 2018-05-01T16:52:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-03T16:06:43.000Z (about 7 years ago)
- Last Synced: 2025-02-13T21:44:51.860Z (4 months ago)
- Topics: code-generator, dotnet, netpyoung-nf, puml, schemy, workflow
- Language: C#
- Homepage:
- Size: 366 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
nf.state-flow
=============[flow.puml](flow.puml)

# 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)

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)