mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-20 17:55:41 +08:00
30 lines
619 B
TypeScript
30 lines
619 B
TypeScript
/*
|
|
* @Author: dgflash
|
|
* @Date: 2022-06-02 09:38:48
|
|
* @LastEditors: dgflash
|
|
* @LastEditTime: 2022-06-14 17:55:36
|
|
*/
|
|
|
|
import { JsonUtil } from "../../../../../extensions/oops-framework/assets/core/utils/JsonUtil";
|
|
|
|
export class TableRoleLevelUp {
|
|
static TableName: string = "RoleLevelUp";
|
|
|
|
private data: any;
|
|
|
|
init(id: number) {
|
|
var table = JsonUtil.get(TableRoleLevelUp.TableName);
|
|
this.data = table[id];
|
|
this.id = id;
|
|
}
|
|
|
|
id: number = 0;
|
|
|
|
get needexp(): number {
|
|
return this.data.needexp;
|
|
}
|
|
get hp(): number {
|
|
return this.data.hp;
|
|
}
|
|
}
|
|
|