feat: client 上关于 mainTextboxManager 的默认主对象实例

This commit is contained in:
AncTe committed 2026-11-25 19:59:53 +08:00
1 parent 6773069c24
commit 8fe1c84693
4 files changed
+32 -11

No files matched your search

+10 -1
View File
@@ -29,7 +29,9 @@ import {
ClientHotkey,
IClientHotkey,
MapRenderItem,
IMapRendererInitConfig
IMapRendererInitConfig,
TextboxManager,
ITextboxManager
} from '@user/client-base';
import { IMapRenderer, MapRenderer } from '@user/client-base';
import {
@@ -59,6 +61,7 @@ export class ClientCore extends CoreState implements IClientCore {
readonly mainUIController: IUIController<IGameUIPropsBase>;
readonly hotkey: IClientHotkey;
readonly vueApp: App<IRenderItem>;
readonly mainTextboxManager: ITextboxManager;
// Layer 5 渲染顶层 - 目前没东西
@@ -120,6 +123,12 @@ export class ClientCore extends CoreState implements IClientCore {
this.vueApp.mount(this.renderer);
this.vueApp.provide('@defulat/materials', this.materials);
this.vueApp.provide(
'@default/expandMapRenderer',
this.expandMapRenderer
);
this.mainTextboxManager = new TextboxManager(this.materials);
this.loader.addCoreConfig('client', config.clientURL);