import { readJsonFile } from '../util' import { FILENAME } from '../../consts' export interface DicGkPvp { readonly id: number; readonly point: number; } const str = readJsonFile(FILENAME.DIC_GATE_ACTIVITY_POINT); let arr = JSON.parse(str); export const dicGateActivityPoint = new Map(); arr.forEach(o => { dicGateActivityPoint.set(o.id, o.point); });