1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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_level;
- 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({}, "33e66OI3mpIHbkpOTa5qoBr", "table_level", undefined);
- __checkObsolete__(['_decorator', 'Component', 'Node']);
- ({
- ccclass,
- property
- } = _decorator);
- _export("table_level", table_level = (_dec = ccclass('table_level'), _dec(_class = (_class2 = class table_level {
- constructor() {
- this.data = void 0;
- /** 编号【KEY】 */
- this.id = 0;
- }
- static get(id) {
- return (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
- error: Error()
- }), TableUtil) : TableUtil).getTable(table_level, id);
- }
- static getList() {
- return (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
- error: Error()
- }), TableUtil) : TableUtil).getTables(table_level, 5);
- }
- init(id) {
- var table = (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
- error: Error()
- }), TableUtil) : TableUtil).get(table_level.TableName);
- this.data = table[id];
- if (!this.data) console.error("配置表" + table_level.TableName + "没有ID:" + id);
- this.id = id;
- }
- get time() {
- return parseInt(this.data.time);
- }
- get different_grade_level() {
- return this.data.different_grade_level;
- }
- get idiom_type_1() {
- return this.data.idiom_type_1;
- }
- get idiom_type_2() {
- return this.data.idiom_type_2;
- }
- get count() {
- return parseInt(this.data.count);
- }
- get random1_3_count() {
- return parseInt(this.data.random1_3_count);
- }
- get random2_2_count() {
- return parseInt(this.data.random2_2_count);
- }
- }, _class2.TableName = "level", _class2.IdList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], _class2)) || _class));
- _cclegacy._RF.pop();
- _crd = false;
- }
- };
- });
- //# sourceMappingURL=b04976f3b46e4a2c0e3d4e547f1979cd6eb7200f.js.map
|