feat(gvg): 添加gvg积分点资源

This commit is contained in:
luying
2023-02-08 11:17:56 +08:00
parent fbfecc999f
commit b72c5df0d5
4 changed files with 2174 additions and 15 deletions

View 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;
}