diff --git a/packages-user/data-state/src/core.ts b/packages-user/data-state/src/core.ts index 1757ef9..899fec7 100644 --- a/packages-user/data-state/src/core.ts +++ b/packages-user/data-state/src/core.ts @@ -104,14 +104,13 @@ export class CoreState implements ICoreState { // Layer 2 执行层,游戏逻辑对象都在这,包括一些需要操作数据层的逻辑系统等 readonly enemyContext: IEnemyContext; readonly eventSystem: IGameEventSystem; - /** 已绑定勇士移动器的寻路系统 */ readonly pathfinding: IPathfindingSystem; - /** 当前 CoreState 独立拥有的录像系统 */ readonly replaySystem: IReplaySystem; // Layer 3 用户层,也就是最顶层的内容,一般仅用于初始化以及仅供渲染端调用的顶层模块 readonly loadProgress: ILoadProgressTotal; readonly dataLoader: IMotaDataLoader; + /** 可存档对象映射 */ private readonly saveables: Map> = new Map(); /** 所有已添加的可存档对象 */ diff --git a/packages-user/data-system/src/types.ts b/packages-user/data-system/src/types.ts index 6b51bfb..fc2d678 100644 --- a/packages-user/data-system/src/types.ts +++ b/packages-user/data-system/src/types.ts @@ -1,13 +1,18 @@ import { IStateBase } from '@user/data-base'; import { IEnemyContext } from './combat'; -import { IEnemyAttr, IHeroAttr } from '@user/data-common'; +import { IEnemyAttr, IHeroAttr, IReplaySystem } from '@user/data-common'; import { IGameEventSystem } from './event'; +import { IPathfindingSystem } from './path'; export interface IStateSystem extends IStateBase { /** 怪物上下文 */ readonly enemyContext: IEnemyContext; /** 游戏事件系统 */ readonly eventSystem: IGameEventSystem; + /** 已绑定勇士移动器的寻路系统 */ + readonly pathfinding: IPathfindingSystem; + /** 当前 CoreState 独立拥有的录像系统 */ + readonly replaySystem: IReplaySystem; } export interface IStateSystemExtended {