System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], function (_export, _context) {
  "use strict";

  var _reporterNs, _cclegacy, ecs, InitResComp, _dec, _class, _crd, Initialize;

  function _reportPossibleCrUseOfecs(extras) {
    _reporterNs.report("ecs", "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS", _context.meta, extras);
  }

  function _reportPossibleCrUseOfInitResComp(extras) {
    _reporterNs.report("InitResComp", "./bll/InitRes", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
    }, function (_unresolved_2) {
      ecs = _unresolved_2.ecs;
    }, function (_unresolved_3) {
      InitResComp = _unresolved_3.InitResComp;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "ffbceQs6Z9IoI5z6mt1avMw", "Initialize", undefined);
      /*
       * @Author: dgflash
       * @Date: 2021-11-11 17:45:23
       * @LastEditors: dgflash
       * @LastEditTime: 2022-08-03 10:07:14
       */


      /**
       * 游戏进入初始化模块
       * 1、热更新
       * 2、加载默认资源
       */
      _export("Initialize", Initialize = (_dec = (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
        error: Error()
      }), ecs) : ecs).register('Initialize'), _dec(_class = class Initialize extends (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
        error: Error()
      }), ecs) : ecs).Entity {
        init() {
          // 初始化游戏公共资源
          this.add(_crd && InitResComp === void 0 ? (_reportPossibleCrUseOfInitResComp({
            error: Error()
          }), InitResComp) : InitResComp);
        }

      }) || _class)); // export class EcsInitializeSystem extends ecs.System {
      //     constructor() {
      //         super();
      //         this.add(new InitResSystem());
      //     }
      // }


      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=7b1d138af794af3ca3077ae52e156ec63d7531b4.js.map