军团:添加活跃排行榜
This commit is contained in:
25
shared/pubUtils/dictionary/DicGuildActiveWays.ts
Normal file
25
shared/pubUtils/dictionary/DicGuildActiveWays.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// 各种操作可以增加的活跃
|
||||
import { readJsonFile, decodeIdCntArrayStr } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicGuildActiveWays {
|
||||
|
||||
// id
|
||||
readonly id: number;
|
||||
// 最大次数
|
||||
readonly count: number;
|
||||
// 奖励
|
||||
readonly activePoint: Map<string, number>;
|
||||
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_ARMY_ACTIVE_POINT_WAYS);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicGuildActiveWays = new Map<number, DicGuildActiveWays>();
|
||||
|
||||
arr.forEach(o => {
|
||||
o.activePoint = decodeIdCntArrayStr(o.activePoint, 1);
|
||||
dicGuildActiveWays.set(o.id, o);
|
||||
});
|
||||
arr = undefined;
|
||||
Reference in New Issue
Block a user