mirror of
https://github.com/motajs/template.git
synced 2026-11-02 23:14:34 +08:00
refactor: 统一三个数据层的接口风格
This commit is contained in:
1 parent
8f4c4b7df2
commit
b779e62eb2
6 files changed
+23
-7
No files matched your search
@@ -1,2 +1,4 @@
|
||||
export * from './combat';
|
||||
export * from './trigger';
|
||||
|
||||
export * from './types';
|
||||
@@ -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>;
|
||||
}
|
||||
Reference in new issue
Block a user