Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

让LevelManager和Task提供更好的出错处理抽象 #25

Open
median-dxz opened this issue Aug 3, 2024 · 0 comments
Open

让LevelManager和Task提供更好的出错处理抽象 #25

median-dxz opened this issue Aug 3, 2024 · 0 comments
Labels
core @sea/core help wanted Extra attention is needed not planed This will not be worked on

Comments

@median-dxz
Copy link
Owner

举例说明,精灵王日任关卡挑战的是困难难度,那么对于还没解锁困难难度的萌新,在使用该关卡时,关卡应该抛出异常让登录器的任务调度器(taskScheduler)去处理还是使用状态机自行处理?如果自行处理,根据目前的架构设计思路,next函数是否应该返回一个特定的错误状态?还是在data中置一个errno属性,然后自陷一个通用的error状态?
而且说回来,有必要区分前置条件不满足(可以在update函数中判断出)和意外错误导致的关卡无法运行吗?
目前的大部分自由度交由关卡模组本身来处理。TaskRunner并没有能和登录器交互的接口为logger和错误捕获,和LevelRunner的交互是特定Action和错误捕获,有必要增加交互方式吗?

@median-dxz median-dxz added help wanted Extra attention is needed core @sea/core not planed This will not be worked on labels Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core @sea/core help wanted Extra attention is needed not planed This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant