// 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(); export function loadGVGAreaPoint() { dicGVGAreaPoint.clear(); let arr = readFileAndParse(FILENAME.DIC_GVG_AREA_POINT); arr.forEach(o => { dicGVGAreaPoint.set(o.pointId, o); }); arr = undefined; }