Show HN: LogicBlocks: Human-friendly statecharts for C# games and apps
I made a hierarchical state machine implementation (or statecharts, depending on how you view it) for C# that allows me to write my nested states using inheritance just like you would with the state pattern. It has an experimental source generator I have been working on that reads your code and produces the UML diagram so you can see what your code looks like based on its inputs, the state changes, and the outputs produced.<p>The source generator probably needs some major improvements to be truly robust, but I&#x27;ve already found it to be incredibly helpful for the game I&#x27;m making and some other projects. It&#x27;s really nice to be able to quickly glance at a diagram as you&#x27;re making changes to the code to verify if it&#x27;s what you intended.<p>Hope you like it :))