1f8bc3a5637acade0f9735232188cc7061cfd18c.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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_idiom;
  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({}, "66b6actiV5OT5PfIK2+fbca", "table_idiom", undefined);
  21. __checkObsolete__(['_decorator', 'Component', 'Node']);
  22. ({
  23. ccclass,
  24. property
  25. } = _decorator);
  26. _export("table_idiom", table_idiom = (_dec = ccclass('table_idiom'), _dec(_class = (_class2 = class table_idiom {
  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_idiom, id);
  36. }
  37. static getList() {
  38. return (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
  39. error: Error()
  40. }), TableUtil) : TableUtil).getTables(table_idiom, 2052);
  41. }
  42. init(id) {
  43. var table = (_crd && TableUtil === void 0 ? (_reportPossibleCrUseOfTableUtil({
  44. error: Error()
  45. }), TableUtil) : TableUtil).get(table_idiom.TableName);
  46. this.data = table[id];
  47. if (!this.data) console.error("配置表" + table_idiom.TableName + "没有ID:" + id);
  48. this.id = id;
  49. }
  50. get idiom() {
  51. return this.data.idiom;
  52. }
  53. get idiom_type() {
  54. return this.data.idiom_type;
  55. }
  56. get difficulty() {
  57. return this.data.difficulty;
  58. }
  59. get piece_1_word() {
  60. return this.data.piece_1_word;
  61. }
  62. get piece_2_word() {
  63. return this.data.piece_2_word;
  64. }
  65. }, _class2.TableName = "idiom", _class2.IdList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], _class2)) || _class));
  66. _cclegacy._RF.pop();
  67. _crd = false;
  68. }
  69. };
  70. });
  71. //# sourceMappingURL=1f8bc3a5637acade0f9735232188cc7061cfd18c.js.map