dd
This commit is contained in:
23
assets/script/game/hero/Aheros/ModuleTable.ts
Normal file
23
assets/script/game/hero/Aheros/ModuleTable.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";
|
||||
|
||||
/** 策划 Excel 导出的 Json 静态数据 */
|
||||
export class ModuleTable {
|
||||
static TableName: string = "配置表文件名";
|
||||
|
||||
/** 静态表中一条数据 */
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(ModuleTable.TableName);
|
||||
this.data = table[id];
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 数据唯一编号 */
|
||||
id: number = 0;
|
||||
|
||||
/** 数据 */
|
||||
// get test(): number {
|
||||
// return this.data.test;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user