var t = require; var e = module; var i = exports; var e = (this && this.__decorate) || function(t, e, i, s) { var o, a = arguments.length, n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s); else for (var r = t.length - 1; 0 <= r; r--) (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n); return 3 < a && n && Object.defineProperty(e, i, n), n; }, s = (this && this.__awaiter) || function(t, n, r, l) { return new(r = r || Promise)(function(i, e) { function s(t) { try { a(l.next(t)); } catch (t) { e(t); } } function o(t) { try { a(l.throw(t)); } catch (t) { e(t); } } function a(t) { var e; t.done ? i(t.value) : ((e = t.value) instanceof r ? e : new r(function(t) { t(e); }) ).then(s, o); } a((l = l.apply(t, n || [])).next()); }); }; Object.defineProperty(i, "__esModule", { value: !0 }); const o = t("App"), a = t("BaseScene"), n = t("GameText"), r = t("ControllerConst"), l = t("ADController"), h = t("LoadingController"), c = t("Platform"), d = t("SceneConst"), { ccclass: u, property: p } = cc._decorator; t = class extends a.default { constructor() { super(...arguments), (this.sceneName = d.SceneTag.LOGIN), (this.loadingViewPrefab = null), (this.SubProjectCfg = null), (this.subCfg = null); } onEnter() { const t = Object.create(null, { onEnter: { get: () => super.onEnter } }); return s(this, void 0, void 0, function*() { t.onEnter.call(this); 0.62 < cc.winSize.height / cc.winSize.width && (this.node.getComponent(cc.Canvas).fitWidth = !0); Log.trace("初始化平台类"), c.Platform.init(), yield n.GameText.init(), this.initModule(); }); } initModule() { o.default.ControllerManager.register(r.ControllerConst.Loading, h.default), o.default.ControllerManager.register(r.ControllerConst.AD, l.ADController); } }; e([p(cc.Prefab)], t.prototype, "loadingViewPrefab", void 0), e([p(cc.JsonAsset)], t.prototype, "SubProjectCfg", void 0), e([p({ type: cc.JsonAsset })], t.prototype, "subCfg", void 0), (t = e([u], t)), (i.default = t);