123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4"], function (_export, _context) {
- "use strict";
- var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, director, UI_Hall, gui, PlayerData, ch, _dec, _class, _class2, _crd, ccclass, property, Hall;
- function _reportPossibleCrUseOfUI_Hall(extras) {
- _reporterNs.report("UI_Hall", "../module_game/ui/UI_Hall/UI_Hall", _context.meta, extras);
- }
- function _reportPossibleCrUseOfgui(extras) {
- _reporterNs.report("gui", "../core/ui/ui", _context.meta, extras);
- }
- function _reportPossibleCrUseOfPlayerData(extras) {
- _reporterNs.report("PlayerData", "../module_game/game/PlayerData", _context.meta, extras);
- }
- function _reportPossibleCrUseOfch(extras) {
- _reporterNs.report("ch", "../ch/ch", _context.meta, extras);
- }
- return {
- setters: [function (_unresolved_) {
- _reporterNs = _unresolved_;
- }, function (_cc) {
- _cclegacy = _cc.cclegacy;
- __checkObsolete__ = _cc.__checkObsolete__;
- __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
- _decorator = _cc._decorator;
- Component = _cc.Component;
- director = _cc.director;
- }, function (_unresolved_2) {
- UI_Hall = _unresolved_2.UI_Hall;
- }, function (_unresolved_3) {
- gui = _unresolved_3.gui;
- }, function (_unresolved_4) {
- PlayerData = _unresolved_4.default;
- }, function (_unresolved_5) {
- ch = _unresolved_5.ch;
- }],
- execute: function () {
- _crd = true;
- _cclegacy._RF.push({}, "7cb62YJXe5LPKnKF0hMl+Rc", "Hall", undefined);
- __checkObsolete__(['_decorator', 'Component', 'director', 'Node']);
- ({
- ccclass,
- property
- } = _decorator);
- _export("Hall", Hall = (_dec = ccclass('Hall'), _dec(_class = (_class2 = class Hall extends Component {
- constructor(...args) {
- super(...args);
- this.player = void 0;
- }
- static getInstance() {
- return Hall.instance;
- }
- start() {
- if (!Hall.instance) {
- Hall.instance = this;
- }
- (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
- error: Error()
- }), gui) : gui).show(_crd && UI_Hall === void 0 ? (_reportPossibleCrUseOfUI_Hall({
- error: Error()
- }), UI_Hall) : UI_Hall);
- director.addPersistRootNode(this.node);
- this.init();
- }
- init() {
- this.player = (_crd && PlayerData === void 0 ? (_reportPossibleCrUseOfPlayerData({
- error: Error()
- }), PlayerData) : PlayerData).getInstance((_crd && ch === void 0 ? (_reportPossibleCrUseOfch({
- error: Error()
- }), ch) : ch).sdk.get_gid(), (_crd && ch === void 0 ? (_reportPossibleCrUseOfch({
- error: Error()
- }), ch) : ch).sdk.get_uid().toString());
- this.player.init_user_info();
- }
- }, _class2.instance = void 0, _class2)) || _class));
- _cclegacy._RF.pop();
- _crd = false;
- }
- };
- });
- //# sourceMappingURL=24a83a22cc223ec58481e36c4a55a5226e7d02c6.js.map
|