System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6"], function (_export, _context) { "use strict"; var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, Component, get_new_delay, get_new_fms, get_new_job, get_new_random, get_new_prefab_pool, DirectorUtil, Game, _crd; function _reportPossibleCrUseOfget_new_delay(extras) { _reporterNs.report("get_new_delay", "../../core/util_class/Delay", _context.meta, extras); } function _reportPossibleCrUseOfget_new_fms(extras) { _reporterNs.report("get_new_fms", "../../core/util_class/FMS", _context.meta, extras); } function _reportPossibleCrUseOfget_new_job(extras) { _reporterNs.report("get_new_job", "../../core/util_class/TimeJobCenter", _context.meta, extras); } function _reportPossibleCrUseOfget_new_random(extras) { _reporterNs.report("get_new_random", "../../core/util_class/Random", _context.meta, extras); } function _reportPossibleCrUseOfget_new_prefab_pool(extras) { _reporterNs.report("get_new_prefab_pool", "../../core/util_class/PrefabPool", _context.meta, extras); } function _reportPossibleCrUseOfDirectorUtil(extras) { _reporterNs.report("DirectorUtil", "../../core/util/DirectorUtil", _context.meta, extras); } _export("Game", void 0); return { setters: [function (_unresolved_) { _reporterNs = _unresolved_; }, function (_cc) { _cclegacy = _cc.cclegacy; __checkObsolete__ = _cc.__checkObsolete__; __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__; Component = _cc.Component; }, function (_unresolved_2) { get_new_delay = _unresolved_2.default; }, function (_unresolved_3) { get_new_fms = _unresolved_3.default; }, function (_unresolved_4) { get_new_job = _unresolved_4.default; }, function (_unresolved_5) { get_new_random = _unresolved_5.default; }, function (_unresolved_6) { get_new_prefab_pool = _unresolved_6.default; }, function (_unresolved_7) { DirectorUtil = _unresolved_7.default; }], execute: function () { _crd = true; _cclegacy._RF.push({}, "c8af7nfrdRHqaACOmm328nQ", "Game", undefined); __checkObsolete__(['_decorator', 'Component', 'director', 'Node']); /** * 游戏模块 * const { ccclass, property } = _decorator; @ccclass('GameStar') export class GameStar extends Game { public cc:number=99; public tcc():void{ console.log("goaodfjadsofjosadjfo"+this.cc); } onLoad(): void { super.onLoad(); } update(deltaTime: number) { super.update(deltaTime); } async start() { console.log("111111111111111111111111111") await this.delay.start(3); console.log("3333333333333333333333333") GameStar.getInst().tcc(); } } */ _export("Game", Game = class Game extends Component { constructor(...args) { super(...args); /**游戏流程状态*/ this.FMS = (_crd && get_new_fms === void 0 ? (_reportPossibleCrUseOfget_new_fms({ error: Error() }), get_new_fms) : get_new_fms)(); /**时间任务管理 暂停后不运行*/ this.job = (_crd && get_new_job === void 0 ? (_reportPossibleCrUseOfget_new_job({ error: Error() }), get_new_job) : get_new_job)(); /**延时管理*/ this.delay = (_crd && get_new_delay === void 0 ? (_reportPossibleCrUseOfget_new_delay({ error: Error() }), get_new_delay) : get_new_delay)(); /**可设置种子的随机数*/ this.ranodm = (_crd && get_new_random === void 0 ? (_reportPossibleCrUseOfget_new_random({ error: Error() }), get_new_random) : get_new_random)(new Date().getTime()); /**预制体对象池*/ this.prefabPool = (_crd && get_new_prefab_pool === void 0 ? (_reportPossibleCrUseOfget_new_prefab_pool({ error: Error() }), get_new_prefab_pool) : get_new_prefab_pool)(); this._paused = false; } static getInst() { const _class = this; return _class.instance; } onLoad() { Game.instance = this; } get is_paused() { return this._paused; } // pause() { this._paused = true; (_crd && DirectorUtil === void 0 ? (_reportPossibleCrUseOfDirectorUtil({ error: Error() }), DirectorUtil) : DirectorUtil).pause(); } // resume() { this._paused = false; (_crd && DirectorUtil === void 0 ? (_reportPossibleCrUseOfDirectorUtil({ error: Error() }), DirectorUtil) : DirectorUtil).resume(); } update(deltaTime) { this.delay.update(deltaTime); if (this._paused) return; this.job.Run(deltaTime); } }); Game.instance = void 0; _cclegacy._RF.pop(); _crd = false; } }; }); //# sourceMappingURL=63b56bb3a48db9d49616f71228cf50ce0dd6714a.js.map