添加字典表解析
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// 远征关卡表
|
||||
import { readJsonFile } from '../util'
|
||||
import { FILENAME } from '../../consts/consts'
|
||||
|
||||
export interface DicExpedition {
|
||||
// 远征id
|
||||
readonly id: number;
|
||||
// 关卡id
|
||||
readonly warId: number;
|
||||
// 关卡系数
|
||||
readonly CEScale: number;
|
||||
// 关卡系数范围
|
||||
readonly CERange: number;
|
||||
// 新手期关卡系数
|
||||
readonly CEScaleNew: number;
|
||||
// 新手期关卡系数范围
|
||||
readonly CERangeNew: number;
|
||||
// 机器人模板出兵表
|
||||
readonly json: number;
|
||||
// 模板战力
|
||||
readonly ce: number;
|
||||
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_EXPEDITION);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicExpedition = new Map<number, DicExpedition>();
|
||||
arr.forEach(o => {
|
||||
dicExpedition.set(o.id, o);
|
||||
});
|
||||
Reference in New Issue
Block a user