System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) { "use strict"; var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, TableUtil, _dec, _class, _class2, _crd, ccclass, property, table_task; function _reportPossibleCrUseOfTableUtil(extras) { _reporterNs.report("TableUtil", "./TableUtil", _context.meta, extras); } return { setters: [function (_unresolved_) { _reporterNs = _unresolved_; }, function (_cc) { _cclegacy = _cc.cclegacy; __checkObsolete__ = _cc.__checkObsolete__; __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__; _decorator = _cc._decorator; }, function (_unresolved_2) { TableUtil = _unresolved_2.TableUtil; }], execute: function () { _crd = true; _cclegacy._RF.push({}, "f4c45qg9AdKhq8rlGES1Urw", "table_task", undefined); __checkObsolete__(['_decorator', 'Component', 'Node']); ({ ccclass, property } = _decorator); _export("table_task", table_task = (_dec = ccclass('table_task'), _dec(_class = (_class2 = class table_task { constructor() { this.data = void 0; /** 编号【KEY】 */ this.id = 0; } static get(id) { return (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({ error: Error() }), TableUtil) : TableUtil).getTable(table_task, id); } static getList() { return (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({ error: Error() }), TableUtil) : TableUtil).getTables(table_task, 5); } init(id) { var table = (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({ error: Error() }), TableUtil) : TableUtil).get(table_task.TableName); this.data = table[id]; if (!this.data) console.error("配置表" + table_task.TableName + "没有ID:" + id); this.id = id; } get goal() { return this.data.goal; } get type() { return this.data.type; } get num() { return this.data.num; } get name() { return this.data.name; } }, _class2.TableName = "task", _class2)) || _class)); _cclegacy._RF.pop(); _crd = false; } }; }); //# sourceMappingURL=b86f4beef181d81e98dabb2b28023fef7e418e17.js.map