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