feat: 录像记录 & CoreState 存储接口

This commit is contained in:
AncTe committed 2026-09-14 18:09:45 +08:00
1 parent 5470f7a90e
commit cee843981f
16 files changed
+156 -51

No files matched your search

@@ -1,5 +1,25 @@
import { IHookable, IHookBase } from '@motajs/common';
/** 录像指令码,数值属于录像格式的一部分 */
export const enum ReplayCommandCode {
/** 向上移动一步 */
Up,
/** 向右移动一步 */
Right,
/** 向下移动一步 */
Down,
/** 向左移动一步 */
Left,
/** 自动寻路瞬移至目标点 */
Teleport,
/** 使用道具 */
UseItem,
/** 装备物品 */
Equip,
/** 卸下装备 */
Unequip
}
export type ReplayParamValue = number | string | boolean | bigint;
export interface IReplayStepHandler {
+3
View File
@@ -2,6 +2,7 @@ import { IDirectionMapper, ITileLocator } from '@motajs/common';
import { IFaceManager, IRoleFaceBinder } from './common';
import { IGameEventStore, IItemStore, IMapStore, ITileStore } from './store';
import { ISaveSystem } from './save';
import { IReplaySystem } from './replay';
export interface IEnemyAttr {
/** 怪物生命值 */
@@ -60,6 +61,8 @@ export interface IDataCommon {
readonly directionMapper: IDirectionMapper;
/** 存档系统 */
readonly saveSystem: ISaveSystem;
/** 录像系统 */
readonly replaySystem: IReplaySystem;
}
export interface IDataCommonExtended {