1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 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=505b34a78c0dbfe58195107ebd90b3bc5807bf10.js.map
|