mirror of
https://github.com/motajs/template.git
synced 2026-11-27 16:34:31 +08:00
refactor: 统一三个数据层的接口风格
This commit is contained in:
1 parent
8f4c4b7df2
commit
b779e62eb2
6 files changed
+23
-7
No files matched your search
@@ -34,3 +34,8 @@ export interface IStateBase<TEnemy, THero> extends IDataCommon {
|
||||
*/
|
||||
getSaveableContent<T>(id: string): ISaveableContent<T> | null;
|
||||
}
|
||||
|
||||
export interface IStateBaseExtended<TEnemy = unknown, THero = unknown> {
|
||||
/** 当前对象对应的数据层对象(Layer 1 对象) */
|
||||
readonly state: IStateBase<TEnemy, THero>;
|
||||
}
|
||||
Reference in new issue
Block a user