29eb26e10062f4c5213f424f683231145adfd627.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, TableUtil, _dec, _class, _class2, _crd, ccclass, property, table_level;
  4. function _reportPossibleCrUseOfTableUtil(extras) {
  5. _reporterNs.report("TableUtil", "./TableUtil", _context.meta, extras);
  6. }
  7. return {
  8. setters: [function (_unresolved_) {
  9. _reporterNs = _unresolved_;
  10. }, function (_cc) {
  11. _cclegacy = _cc.cclegacy;
  12. __checkObsolete__ = _cc.__checkObsolete__;
  13. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  14. _decorator = _cc._decorator;
  15. }, function (_unresolved_2) {
  16. TableUtil = _unresolved_2.TableUtil;
  17. }],
  18. execute: function () {
  19. _crd = true;
  20. _cclegacy._RF.push({}, "33e66OI3mpIHbkpOTa5qoBr", "table_level", undefined);
  21. __checkObsolete__(['_decorator', 'Component', 'Node']);
  22. ({
  23. ccclass,
  24. property
  25. } = _decorator);
  26. _export("table_level", table_level = (_dec = ccclass('table_level'), _dec(_class = (_class2 = class table_level {
  27. constructor() {
  28. this.data = void 0;
  29. /** 编号【KEY】 */
  30. this.id = 0;
  31. }
  32. static get(id) {
  33. return (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
  34. error: Error()
  35. }), TableUtil) : TableUtil).getTable(table_level, id);
  36. }
  37. static getList() {
  38. return (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
  39. error: Error()
  40. }), TableUtil) : TableUtil).getTables(table_level, 100);
  41. }
  42. init(id) {
  43. var table = (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
  44. error: Error()
  45. }), TableUtil) : TableUtil).get(table_level.TableName);
  46. this.data = table[id];
  47. if (!this.data) console.error("配置表" + table_level.TableName + "没有ID:" + id);
  48. this.id = id;
  49. }
  50. get time() {
  51. return parseInt(this.data.time);
  52. }
  53. get different_grade_level() {
  54. return this.data.different_grade_level;
  55. }
  56. get idiom_type_1() {
  57. return this.data.idiom_type_1;
  58. }
  59. get idiom_type_2() {
  60. return this.data.idiom_type_2;
  61. }
  62. get count() {
  63. return parseInt(this.data.count);
  64. } // "time": "195",
  65. // "different_grade_level": "New User Guide",
  66. // "idiom_type_1": "",
  67. // "idiom_type_2": "见如故_通八达_往往",
  68. // "count": "0",
  69. // "easy_1_3": "0",
  70. // "hard_1_3": "0",
  71. // "easy_3_1": "0",
  72. // "hard_3_1": "0",
  73. // "easy_2_2": "0",
  74. // "hard_2_2": "3",
  75. // "total": "3"
  76. get easy_1_3() {
  77. return parseInt(this.data.easy_1_3);
  78. }
  79. get hard_1_3() {
  80. return parseInt(this.data.hard_1_3);
  81. }
  82. get easy_3_1() {
  83. return parseInt(this.data.easy_3_1);
  84. }
  85. get hard_3_1() {
  86. return parseInt(this.data.hard_3_1);
  87. }
  88. get easy_2_2() {
  89. return parseInt(this.data.easy_2_2);
  90. }
  91. get hard_2_2() {
  92. return parseInt(this.data.hard_2_2);
  93. }
  94. get total() {
  95. return parseInt(this.data.total);
  96. }
  97. }, _class2.TableName = "level", _class2)) || _class));
  98. _cclegacy._RF.pop();
  99. _crd = false;
  100. }
  101. };
  102. });
  103. //# sourceMappingURL=29eb26e10062f4c5213f424f683231145adfd627.js.map