refactor: 渲染端初始化移动至主插件

This commit is contained in:
AncTe committed 2026-10-16 00:41:58 +08:00
1 parent 7fde97ff1e
commit 0a133058ca
12 files changed
+118 -187

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ export function createCoreStateConfig(
}
/**
* 创建数据端主对象,返回未经过初始化的主对象实例,需要手动调用 `state.load` 初始化
* 创建数据端主对象,返回未经过异步初始化的主对象实例,需要手动调用 `state.load` 初始化
* @param starter 加载启动器
*/
export function createCoreState(starter: ILoadTaskStarter): ICoreState {
+1 -1
View File
@@ -63,7 +63,7 @@ export class MainDataPlugin implements IDataPluginDefine {
// 进行勇士的加载后初始化
const coreConfig = state.loader.getConfig<ICoreStateCoreConfig>('core');
if (!coreConfig) {
logger.error(79);
logger.error(79, 'Data');
return;
}
const dir = state.faceManager.get(this.heroFace);