This commit is contained in:
yinsx
2026-01-05 09:41:23 +08:00
commit 2ad9f27457
30 changed files with 3044 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import { Monobehiver } from '../base/Monobehiver';
import { Dictionary } from '../utils/Dictionary';
/**
* 管理器基类 - 提供通用的初始化和缓存能力
*/
export class BaseManager<TMainApp = any> extends Monobehiver<TMainApp> {
protected meshCache = new Dictionary<unknown>();
protected isInitialized = false;
async initialize(): Promise<void> {
if (this.isInitialized) return;
this.isInitialized = true;
}
clean(): void {
this.meshCache.Clear();
}
}