System.register(["__unresolved_0", "cc", "cc/env", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7"], function (_export, _context) {
  "use strict";

  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, profiler, DEBUG, oops, Root, ecs, Account, smc, UIConfigData, Initialize, _dec, _class, _crd, ccclass, property, Main;

  function _reportPossibleCrUseOfoops(extras) {
    _reporterNs.report("oops", "../../extensions/oops-plugin-framework/assets/core/Oops", _context.meta, extras);
  }

  function _reportPossibleCrUseOfRoot(extras) {
    _reporterNs.report("Root", "../../extensions/oops-plugin-framework/assets/core/Root", _context.meta, extras);
  }

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

  function _reportPossibleCrUseOfAccount(extras) {
    _reporterNs.report("Account", "./game/account/Account", _context.meta, extras);
  }

  function _reportPossibleCrUseOfsmc(extras) {
    _reporterNs.report("smc", "./game/common/SingletonModuleComp", _context.meta, extras);
  }

  function _reportPossibleCrUseOfUIConfigData(extras) {
    _reporterNs.report("UIConfigData", "./game/common/config/GameUIConfig", _context.meta, extras);
  }

  function _reportPossibleCrUseOfInitialize(extras) {
    _reporterNs.report("Initialize", "./game/initialize/Initialize", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      _decorator = _cc._decorator;
      profiler = _cc.profiler;
    }, function (_ccEnv) {
      DEBUG = _ccEnv.DEBUG;
    }, function (_unresolved_2) {
      oops = _unresolved_2.oops;
    }, function (_unresolved_3) {
      Root = _unresolved_3.Root;
    }, function (_unresolved_4) {
      ecs = _unresolved_4.ecs;
    }, function (_unresolved_5) {
      Account = _unresolved_5.Account;
    }, function (_unresolved_6) {
      smc = _unresolved_6.smc;
    }, function (_unresolved_7) {
      UIConfigData = _unresolved_7.UIConfigData;
    }, function (_unresolved_8) {
      Initialize = _unresolved_8.Initialize;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "0eec0s4qrZF7onPlYBrD+y+", "Main", undefined);
      /*
       * @Author: dgflash
       * @Date: 2021-07-03 16:13:17
       * @LastEditors: dgflash
       * @LastEditTime: 2022-08-05 18:25:56
       */


      __checkObsolete__(['_decorator', 'profiler']);

      ({
        ccclass,
        property
      } = _decorator);

      _export("Main", Main = (_dec = ccclass('Main'), _dec(_class = class Main extends (_crd && Root === void 0 ? (_reportPossibleCrUseOfRoot({
        error: Error()
      }), Root) : Root) {
        start() {
          if (DEBUG) profiler.showStats();
        }

        run() {
          (_crd && smc === void 0 ? (_reportPossibleCrUseOfsmc({
            error: Error()
          }), smc) : smc).initialize = (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
            error: Error()
          }), ecs) : ecs).getEntity(_crd && Initialize === void 0 ? (_reportPossibleCrUseOfInitialize({
            error: Error()
          }), Initialize) : Initialize);
          (_crd && smc === void 0 ? (_reportPossibleCrUseOfsmc({
            error: Error()
          }), smc) : smc).account = (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
            error: Error()
          }), ecs) : ecs).getEntity(_crd && Account === void 0 ? (_reportPossibleCrUseOfAccount({
            error: Error()
          }), Account) : Account);
        }

        initGui() {
          (_crd && oops === void 0 ? (_reportPossibleCrUseOfoops({
            error: Error()
          }), oops) : oops).gui.init(_crd && UIConfigData === void 0 ? (_reportPossibleCrUseOfUIConfigData({
            error: Error()
          }), UIConfigData) : UIConfigData);
          console.log(">>>>>>>>>>>>>初始化游戏完成>>>>>>>>>>>>>>>>>");
        } // protected initEcsSystem() {
        //     oops.ecs.add(new EcsInitializeSystem());
        // }


      }) || _class));

      _cclegacy._RF.pop();

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