151ef7a135e0e64330bfccbfa38ae121cc1cf068.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, ecs, InitResComp, _dec, _class, _crd, Initialize;
  4. function _reportPossibleCrUseOfecs(extras) {
  5. _reporterNs.report("ecs", "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS", _context.meta, extras);
  6. }
  7. function _reportPossibleCrUseOfInitResComp(extras) {
  8. _reporterNs.report("InitResComp", "./bll/InitRes", _context.meta, extras);
  9. }
  10. return {
  11. setters: [function (_unresolved_) {
  12. _reporterNs = _unresolved_;
  13. }, function (_cc) {
  14. _cclegacy = _cc.cclegacy;
  15. }, function (_unresolved_2) {
  16. ecs = _unresolved_2.ecs;
  17. }, function (_unresolved_3) {
  18. InitResComp = _unresolved_3.InitResComp;
  19. }],
  20. execute: function () {
  21. _crd = true;
  22. _cclegacy._RF.push({}, "ffbceQs6Z9IoI5z6mt1avMw", "Initialize", undefined);
  23. /*
  24. * @Author: dgflash
  25. * @Date: 2021-11-11 17:45:23
  26. * @LastEditors: dgflash
  27. * @LastEditTime: 2022-08-03 10:07:14
  28. */
  29. /**
  30. * 游戏进入初始化模块
  31. * 1、热更新
  32. * 2、加载默认资源
  33. */
  34. _export("Initialize", Initialize = (_dec = (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
  35. error: Error()
  36. }), ecs) : ecs).register('Initialize'), _dec(_class = class Initialize extends (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
  37. error: Error()
  38. }), ecs) : ecs).Entity {
  39. init() {
  40. // 初始化游戏公共资源
  41. this.add(_crd && InitResComp === void 0 ? (_reportPossibleCrUseOfInitResComp({
  42. error: Error()
  43. }), InitResComp) : InitResComp);
  44. }
  45. }) || _class)); // export class EcsInitializeSystem extends ecs.System {
  46. // constructor() {
  47. // super();
  48. // this.add(new InitResSystem());
  49. // }
  50. // }
  51. _cclegacy._RF.pop();
  52. _crd = false;
  53. }
  54. };
  55. });
  56. //# sourceMappingURL=151ef7a135e0e64330bfccbfa38ae121cc1cf068.js.map