b04976f3b46e4a2c0e3d4e547f1979cd6eb7200f.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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, 5);
  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. }
  65. get random1_3_count() {
  66. return parseInt(this.data.random1_3_count);
  67. }
  68. get random2_2_count() {
  69. return parseInt(this.data.random2_2_count);
  70. }
  71. }, _class2.TableName = "level", _class2.IdList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], _class2)) || _class));
  72. _cclegacy._RF.pop();
  73. _crd = false;
  74. }
  75. };
  76. });
  77. //# sourceMappingURL=b04976f3b46e4a2c0e3d4e547f1979cd6eb7200f.js.map