开始音方的状态机和迷你世界3.0重构 #10
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
看了一下我小时候写的屎山代码 自己都看不下去了 一坨什么玩意啊 我要重构 我要重构
之前写这个工具的时候什么都不懂 只是想要实现我要的那些功能 陆续写了一年多... 所有的命令都是散装的if-else和赋值操作实现的 没有边界检查 大范围循环放方块卡得要死(应该弄成异步分批的) 我自己都不想用 我要优化性能 并且把所有的命令用分层状态机进行管理
迷你世界正好出了个开发者模式3.0 面向对象的组件化 我没有理由不重构是吧... 那就开始吧