CommonSystem.ts 509 B

123456789101112131415161718
  1. /*
  2. * @Author: dgflash
  3. * @Date: 2021-07-03 16:13:17
  4. * @LastEditors: dgflash
  5. * @LastEditTime: 2022-08-03 10:19:49
  6. */
  7. import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
  8. import { EcsInitializeSystem } from "../../initialize/Initialize";
  9. /** 多模块系统组件注册 */
  10. export class CommonSystem extends ecs.System {
  11. constructor() {
  12. super();
  13. // 添加自定义游戏模块
  14. this.add(new EcsInitializeSystem());
  15. }
  16. }