This commit is contained in:
2026-04-21 14:58:22 +08:00
parent 2f48948e43
commit e7c1611f6b
23 changed files with 748 additions and 49 deletions

View File

@ -13,6 +13,7 @@ import { AppConfig } from './AppConfig';
import { AppRay } from './AppRay';
import { GameManager } from './GameManager';
import { EventBridge } from '../event/bridge';
import { AppHotspot } from './AppHotspot';
/**
* 主应用类 - 3D场景的核心控制器
@ -26,6 +27,7 @@ export class MainApp {
appLight: AppLight;
appEnv: AppEnv;
appRay: AppRay;
appHotspot: AppHotspot;
gameManager: GameManager;
@ -37,6 +39,7 @@ export class MainApp {
this.appLight = new AppLight(this);
this.appEnv = new AppEnv(this);
this.appRay = new AppRay(this);
this.appHotspot = new AppHotspot(this);
this.gameManager = new GameManager(this);
window.addEventListener("resize", () => this.appEngin.handleResize());
@ -84,5 +87,6 @@ export class MainApp {
async dispose(): Promise<void> {
this.appModel?.clean();
this.appEnv?.clean();
this.appHotspot?.clear();
}
}