✨ feat(gvg): 激战期接口详细返回
This commit is contained in:
@@ -24,12 +24,18 @@ export interface DicGVGAreaPoint {
|
||||
}
|
||||
|
||||
export const dicGVGAreaPoint = new Map<number, DicGVGAreaPoint>();
|
||||
export const dicGVGPointsByAreaId = new Map<number, number[]>();
|
||||
export function loadGVGAreaPoint() {
|
||||
dicGVGAreaPoint.clear();
|
||||
dicGVGPointsByAreaId.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_GVG_AREA_POINT);
|
||||
arr.forEach(o => {
|
||||
dicGVGAreaPoint.set(o.pointId, o);
|
||||
if(!dicGVGPointsByAreaId.has(o.areaId)) {
|
||||
dicGVGPointsByAreaId.set(o.areaId, []);
|
||||
}
|
||||
dicGVGPointsByAreaId.get(o.areaId).push(o.pointId);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user