Files
oops-framework/assets/script/game/common/table/TableRoleJob.ts
2022-08-17 10:24:13 +08:00

35 lines
745 B
TypeScript

import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";
export class TableRoleJob {
static TableName: string = "RoleJob";
private data: any;
init(id: number) {
var table = JsonUtil.get(TableRoleJob.TableName);
this.data = table[id];
this.id = id;
}
/** 编号【KEY】 */
id: number = 0;
/** 职业名 */
get armsName(): string {
return this.data.armsName;
}
/** 武器类型 */
get weaponType(): any {
return this.data.weaponType;
}
/** 力量 */
get power(): number {
return this.data.power;
}
/** 敏捷 */
get agile(): number {
return this.data.agile;
}
}