24a83a22cc223ec58481e36c4a55a5226e7d02c6.js 3.6 KB

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