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

+5
View File
@@ -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>;
}