// 公会权限 import { readFileAndParse } from '../util' import { FILENAME } from '../../consts' export interface DicGuildAuction { // 活动类型 1-蛮夷入侵 2-诸侯混战 3-粮草先行 readonly id: number; // 最低名次 readonly min: number; // 最高名次 readonly max: number; // 奖励 readonly rewards: number; } export const dicGuildAuction = new Map(); export function loadGuildAuction() { let arr = readFileAndParse(FILENAME.DIC_GUILD_AUCTION); arr.forEach(o => { let rank = dicGuildAuction.get(o.id)||[]; rank.push(o); dicGuildAuction.set(o.id, rank); }); arr = undefined; }