mirror of
https://github.com/motajs/template.git
synced 2026-11-22 04:54:30 +08:00
refactor: 渲染端初始化移动至主插件
This commit is contained in:
1 parent
7fde97ff1e
commit
0a133058ca
12 files changed
+118
-187
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ export function createCoreStateConfig(
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建数据端主对象,返回未经过初始化的主对象实例,需要手动调用 `state.load` 初始化
|
||||
* 创建数据端主对象,返回未经过异步初始化的主对象实例,需要手动调用 `state.load` 初始化
|
||||
* @param starter 加载启动器
|
||||
*/
|
||||
export function createCoreState(starter: ILoadTaskStarter): ICoreState {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user