refactor: 统一三个数据层的接口风格

This commit is contained in:
AncTe committed 2026-05-17 21:38:29 +08:00
1 parent 8f4c4b7df2
commit b779e62eb2
6 files changed
+23 -7

No files matched your search

+2
View File
@@ -1,2 +1,4 @@
export * from './combat';
export * from './trigger';
export * from './types';
+12
View File
@@ -0,0 +1,12 @@
import { IStateBase } from '@user/data-base';
import { IEnemyContext } from './combat';
export interface IStateSystem<TEnemy, THero> extends IStateBase<TEnemy, THero> {
/** 怪物上下文 */
readonly enemyContext: IEnemyContext<TEnemy, THero>;
}
export interface IStateSystemExtended<TEnemy = unknown, THero = unknown> {
/** 当前对象对应的执行层对象(Layer 2 对象) */
readonly state: IStateSystem<TEnemy, THero>;
}