feat(fsm): 添加有限状态机模块 (#327)
- 添加 IStateMachine 接口,支持泛型状态和上下文 - 添加 StateMachine 实现 - 支持状态定义 (onEnter/onExit/onUpdate) - 支持转换定义和条件 - 支持事件监听 (onChange/onEnter/onExit) - 添加 8 个蓝图节点: - GetCurrentState, TransitionTo, CanTransition - IsInState, WasInState, GetStateDuration - EvaluateTransitions, ResetStateMachine
This commit is contained in:
14
packages/fsm/tsconfig.json
Normal file
14
packages/fsm/tsconfig.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"],
|
||||
"references": [
|
||||
{ "path": "../core" },
|
||||
{ "path": "../blueprint" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user