24a83a22cc223ec58481e36c4a55a5226e7d02c6.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, director, UI_Hall, gui, PlayerData, ch, _dec, _class, _class2, _crd, ccclass, property, Hall;
  4. function _reportPossibleCrUseOfUI_Hall(extras) {
  5. _reporterNs.report("UI_Hall", "../module_game/ui/UI_Hall/UI_Hall", _context.meta, extras);
  6. }
  7. function _reportPossibleCrUseOfgui(extras) {
  8. _reporterNs.report("gui", "../core/ui/ui", _context.meta, extras);
  9. }
  10. function _reportPossibleCrUseOfPlayerData(extras) {
  11. _reporterNs.report("PlayerData", "../module_game/game/PlayerData", _context.meta, extras);
  12. }
  13. function _reportPossibleCrUseOfch(extras) {
  14. _reporterNs.report("ch", "../ch/ch", _context.meta, extras);
  15. }
  16. return {
  17. setters: [function (_unresolved_) {
  18. _reporterNs = _unresolved_;
  19. }, function (_cc) {
  20. _cclegacy = _cc.cclegacy;
  21. __checkObsolete__ = _cc.__checkObsolete__;
  22. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  23. _decorator = _cc._decorator;
  24. Component = _cc.Component;
  25. director = _cc.director;
  26. }, function (_unresolved_2) {
  27. UI_Hall = _unresolved_2.UI_Hall;
  28. }, function (_unresolved_3) {
  29. gui = _unresolved_3.gui;
  30. }, function (_unresolved_4) {
  31. PlayerData = _unresolved_4.default;
  32. }, function (_unresolved_5) {
  33. ch = _unresolved_5.ch;
  34. }],
  35. execute: function () {
  36. _crd = true;
  37. _cclegacy._RF.push({}, "7cb62YJXe5LPKnKF0hMl+Rc", "Hall", undefined);
  38. __checkObsolete__(['_decorator', 'Component', 'director', 'Node']);
  39. ({
  40. ccclass,
  41. property
  42. } = _decorator);
  43. _export("Hall", Hall = (_dec = ccclass('Hall'), _dec(_class = (_class2 = class Hall extends Component {
  44. constructor(...args) {
  45. super(...args);
  46. this.player = void 0;
  47. }
  48. static getInstance() {
  49. return Hall.instance;
  50. }
  51. start() {
  52. if (!Hall.instance) {
  53. Hall.instance = this;
  54. }
  55. (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  56. error: Error()
  57. }), gui) : gui).show(_crd && UI_Hall === void 0 ? (_reportPossibleCrUseOfUI_Hall({
  58. error: Error()
  59. }), UI_Hall) : UI_Hall);
  60. director.addPersistRootNode(this.node);
  61. this.init();
  62. }
  63. init() {
  64. this.player = (_crd && PlayerData === void 0 ? (_reportPossibleCrUseOfPlayerData({
  65. error: Error()
  66. }), PlayerData) : PlayerData).getInstance((_crd && ch === void 0 ? (_reportPossibleCrUseOfch({
  67. error: Error()
  68. }), ch) : ch).sdk.get_gid(), (_crd && ch === void 0 ? (_reportPossibleCrUseOfch({
  69. error: Error()
  70. }), ch) : ch).sdk.get_uid().toString());
  71. this.player.init_user_info();
  72. }
  73. }, _class2.instance = void 0, _class2)) || _class));
  74. _cclegacy._RF.pop();
  75. _crd = false;
  76. }
  77. };
  78. });
  79. //# sourceMappingURL=24a83a22cc223ec58481e36c4a55a5226e7d02c6.js.map