✨ feat(gvg): 添加gvg积分点资源
This commit is contained in:
25
shared/pubUtils/dictionary/DicGVGAreaPoint.ts
Normal file
25
shared/pubUtils/dictionary/DicGVGAreaPoint.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// GVG城池
|
||||
import { FILENAME } from '../../consts'
|
||||
import { readFileAndParse } from '../util'
|
||||
|
||||
export interface DicGVGAreaPoint {
|
||||
// 积分点id
|
||||
readonly pointId: number;
|
||||
// 区域id
|
||||
readonly areaId: number;
|
||||
// 积分
|
||||
readonly score: number;
|
||||
// 位置
|
||||
readonly pointPosition: string;
|
||||
}
|
||||
|
||||
export const dicGVGAreaPoint = new Map<number, DicGVGAreaPoint>();
|
||||
export function loadGVGAreaPoint() {
|
||||
dicGVGAreaPoint.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_GVG_AREA_POINT);
|
||||
arr.forEach(o => {
|
||||
dicGVGAreaPoint.set(o.pointId, o);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user