✨ feat(gvg): 激战期接口详细返回

This commit is contained in:
luying
2023-02-17 10:59:38 +08:00
parent ab0b7aa9ae
commit 26832196b6
14 changed files with 917 additions and 214 deletions
@@ -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;
}