mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-13 21:36:12 +08:00
30 lines
716 B
TypeScript
30 lines
716 B
TypeScript
|
|
import { JsonUtil } from "../../../core/utils/JsonUtil";
|
|
|
|
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;
|
|
}
|
|
}
|
|
|