mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-06-06 19:19:33 +08:00
CommonEnter.ts
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: dgflash
|
||||
* @Date: 2021-07-03 16:13:17
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2022-05-09 09:46:22
|
||||
* @LastEditTime: 2022-05-10 11:36:35
|
||||
*/
|
||||
import { ECSRootSystem } from '../../../core/libs/ecs/ECSSystem';
|
||||
import { oops } from '../../../core/Oops';
|
||||
@@ -13,14 +13,14 @@ import { CommonSystem } from './CommonSystem';
|
||||
/** 游戏业务入口 */
|
||||
export class CommonEnter extends Root {
|
||||
onLoad() {
|
||||
super.onLoad();
|
||||
|
||||
oops.ecs = new ECSRootSystem();
|
||||
oops.ecs.add(new CommonSystem())
|
||||
oops.ecs.init();
|
||||
|
||||
// 加载游戏配置
|
||||
config.init(this.run.bind(this));
|
||||
|
||||
super.onLoad();
|
||||
}
|
||||
|
||||
/** 加载完引擎配置文件后执行 */
|
||||
|
||||
Reference in New Issue
Block a user