19 lines
444 B
TypeScript
19 lines
444 B
TypeScript
import { readFileAndParse } from '../util'
|
|
import { FILENAME } from '../../consts'
|
|
|
|
export interface DicGkPvp {
|
|
readonly id: number;
|
|
readonly point: number;
|
|
}
|
|
|
|
export const dicGateActivityPoint = new Map<number, number>();
|
|
export function loadGateActivityPoint() {
|
|
|
|
let arr = readFileAndParse(FILENAME.DIC_GATE_ACTIVITY_POINT);
|
|
|
|
arr.forEach(o => {
|
|
dicGateActivityPoint.set(o.id, o.point);
|
|
});
|
|
arr = undefined;
|
|
}
|