123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- 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, 100);
- }
- 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);
- } // "time": "195",
- // "different_grade_level": "New User Guide",
- // "idiom_type_1": "",
- // "idiom_type_2": "见如故_通八达_往往",
- // "count": "0",
- // "easy_1_3": "0",
- // "hard_1_3": "0",
- // "easy_3_1": "0",
- // "hard_3_1": "0",
- // "easy_2_2": "0",
- // "hard_2_2": "3",
- // "total": "3"
- get easy_1_3() {
- return parseInt(this.data.easy_1_3);
- }
- get hard_1_3() {
- return parseInt(this.data.hard_1_3);
- }
- get easy_3_1() {
- return parseInt(this.data.easy_3_1);
- }
- get hard_3_1() {
- return parseInt(this.data.hard_3_1);
- }
- get easy_2_2() {
- return parseInt(this.data.easy_2_2);
- }
- get hard_2_2() {
- return parseInt(this.data.hard_2_2);
- }
- get total() {
- return parseInt(this.data.total);
- }
- }, _class2.TableName = "level", _class2)) || _class));
- _cclegacy._RF.pop();
- _crd = false;
- }
- };
- });
- //# sourceMappingURL=29eb26e10062f4c5213f424f683231145adfd627.js.map
|