Files
oops-game-kit/assets/script/game/common/table/TablePromptWindow.ts
dgflash 1decddde62 .
2022-08-06 10:34:21 +08:00

41 lines
968 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* @Author: dgflash
* @Date: 2022-06-02 09:38:48
* @LastEditors: dgflash
* @LastEditTime: 2022-08-02 14:26:35
*/
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";
/** 演示oops-plugin-excel-to-json插件生成的配置表数据结构可删除 */
export class TablePromptWindow {
static TableName: string = "PromptWindow";
private data: any;
init(id: number, id1: number, id2: number) {
var table = JsonUtil.get(TablePromptWindow.TableName);
this.data = table[id][id1][id2];
this.id = id;
this.id1 = id1;
this.id2 = id2;
}
id: number = 0;
id1: number = 0;
id2: number = 0;
get title(): string {
return this.data.title;
}
get describe(): string {
return this.data.describe;
}
get array(): any {
return this.data.array;
}
get hp(): number {
return this.data.hp;
}
}