更新json和部分dictionary定义
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// pvp三个对手
|
||||
import { readJsonFile } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicPvpTeamLevel {
|
||||
// id
|
||||
readonly id: number;
|
||||
// 队伍等级
|
||||
readonly teamLv: number;
|
||||
// 最高五人军功和下限
|
||||
readonly topFiveMin: number;
|
||||
// 最高五人军功和上限
|
||||
readonly topFiveMax: number;
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_PVP_TEAM_LEVEL);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicPvpTeamLevel = new Array<DicPvpTeamLevel>();
|
||||
|
||||
arr.forEach(o => {
|
||||
dicPvpTeamLevel.push(o);
|
||||
});
|
||||
|
||||
arr = undefined;
|
||||
Reference in New Issue
Block a user