TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: LogicBlocks: Human-friendly statecharts for C# games and apps

2 点作者 jolexxa将近 2 年前
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 :))

1 comment

davidkpiano将近 2 年前
This looks awesome!