Skip to content

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

License

Notifications You must be signed in to change notification settings

netpyoung/nf.state-flow

Repository files navigation

nf.state-flow

flow.puml

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. you will like that also.

flow

  1. input_state.ss
(def-fsm HelloFSM
  (GenerateColor (EvtNext (color) ValidateColor))

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

  (DisplayColor (EvtNext () GenerateColor))
)
  1. rake

  2. output.puml

output.png

  1. example.cs

TODO

  • unity preference - auto execute plugin
  • refactoring macro
  • doc
  • make distributable

ref

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published