TablePromptWindow.ts 968 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * @Author: dgflash
  3. * @Date: 2022-06-02 09:38:48
  4. * @LastEditors: dgflash
  5. * @LastEditTime: 2022-08-02 14:26:35
  6. */
  7. import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";
  8. /** 演示oops-plugin-excel-to-json插件生成的配置表数据结构(可删除) */
  9. export class TablePromptWindow {
  10. static TableName: string = "PromptWindow";
  11. private data: any;
  12. init(id: number, id1: number, id2: number) {
  13. var table = JsonUtil.get(TablePromptWindow.TableName);
  14. this.data = table[id][id1][id2];
  15. this.id = id;
  16. this.id1 = id1;
  17. this.id2 = id2;
  18. }
  19. id: number = 0;
  20. id1: number = 0;
  21. id2: number = 0;
  22. get title(): string {
  23. return this.data.title;
  24. }
  25. get describe(): string {
  26. return this.data.describe;
  27. }
  28. get array(): any {
  29. return this.data.array;
  30. }
  31. get hp(): number {
  32. return this.data.hp;
  33. }
  34. }