mirror of
https://gitee.com/dgflash/oops-game-kit.git
synced 2026-07-02 09:04:23 +08:00
29 lines
667 B
TypeScript
29 lines
667 B
TypeScript
/*
|
|
* @Author: dgflash
|
|
* @Date: 2021-11-11 17:45:23
|
|
* @LastEditors: dgflash
|
|
* @LastEditTime: 2022-08-03 10:07:14
|
|
*/
|
|
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
|
import { InitResComp } from "./bll/InitRes";
|
|
|
|
/**
|
|
* 游戏进入初始化模块
|
|
* 1、热更新
|
|
* 2、加载默认资源
|
|
*/
|
|
@ecs.register('Initialize')
|
|
export class Initialize extends ecs.Entity {
|
|
protected init() {
|
|
// 初始化游戏公共资源
|
|
this.add(InitResComp);
|
|
}
|
|
}
|
|
|
|
// export class EcsInitializeSystem extends ecs.System {
|
|
// constructor() {
|
|
// super();
|
|
|
|
// this.add(new InitResSystem());
|
|
// }
|
|
// }
|