字典:后台重载bug
This commit is contained in:
@@ -24,6 +24,8 @@ const DicApKeys: KeysEnum<DicAp> = {
|
||||
export const dicApMaxLevel = { max: 0 };
|
||||
export const dicAp = new Map<number, DicAp>();
|
||||
export function loadAp() {
|
||||
dicApMaxLevel.max = 0;
|
||||
dicAp.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_AP);
|
||||
arr.forEach(o => {
|
||||
o.maxAp = o.maxAP;
|
||||
|
||||
@@ -12,6 +12,8 @@ export interface DicApBuy {
|
||||
export const dicApMaxBuyTimes = { max: 0 };
|
||||
export const dicApBuy = new Map<number, RewardInter[]>();
|
||||
export function loadApBuy() {
|
||||
dicApMaxBuyTimes.max = 0;
|
||||
dicApBuy.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_AP_BUY_COST);
|
||||
arr.forEach(o => {
|
||||
o.cost = parseGoodStr(o.cost);
|
||||
|
||||
@@ -30,7 +30,7 @@ const DicArmyDevelopConsumeKeys: KeysEnum<DicArmyDevelopConsume> = {
|
||||
|
||||
export const dicArmyDevelopConsume = new Map<number, DicArmyDevelopConsume>();
|
||||
export function loadArmyDevelopConsume() {
|
||||
|
||||
dicArmyDevelopConsume.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_DEVELOPMENTCONSUME);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -18,6 +18,7 @@ const DicArmyDonateKeys: KeysEnum<DicArmyDonate> = {
|
||||
|
||||
export const dicArmyDonate = new Map<number, DicArmyDonate>();
|
||||
export function loadArmyDonate() {
|
||||
dicArmyDonate.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_DONATE_BOX_REWARD);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -28,6 +28,7 @@ export const dicArmyTrainJuDian = new Map<number, DicArmyTrainJuDian>();
|
||||
export const dicLastGuildTrainIdOfLv = new Map<number, number>(); // 每级试炼场等级的最后据点id
|
||||
export const dicFirstGuildTrainIdOfLv = new Map<number, number>(); // 每级试炼场等级的最先据点id
|
||||
export function loadArmyTrainJuDian() {
|
||||
dicArmyTrainJuDian.clear();
|
||||
dicLastGuildTrainIdOfLv.clear();
|
||||
dicFirstGuildTrainIdOfLv.clear();
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface DicBlueprtCompose {
|
||||
|
||||
export const dicBlueprtCompose = new Map<number, DicBlueprtCompose>();
|
||||
export function loadBlueprtCompose() {
|
||||
dicBlueprtCompose.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_BLUEPRT_COMPOSE);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -11,7 +11,7 @@ export interface DicCharExp {
|
||||
|
||||
export const dicCharExp = new Map<number, number>();
|
||||
export function loadCharExp() {
|
||||
|
||||
dicCharExp.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_CHAR_EXP);
|
||||
|
||||
let exp = 0;
|
||||
|
||||
@@ -12,7 +12,7 @@ export interface DicChatAccuse {
|
||||
|
||||
export const dicChatAccuse = new Map<number, DicChatAccuse>();
|
||||
export function loadChatAccuse() {
|
||||
|
||||
dicChatAccuse.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_CHAT_ACCUSE);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
// 聊天模板表
|
||||
import { readFileAndParse } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicChatSystem {
|
||||
|
||||
// 模板 id
|
||||
readonly id: number;
|
||||
// 模板名称
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_CHAT_SYSTEM);
|
||||
|
||||
export const dicChatSystem = new Map<number, DicChatSystem>();
|
||||
|
||||
arr.forEach(o => {
|
||||
dicChatSystem.set(o.id, o);
|
||||
});
|
||||
arr = undefined;
|
||||
@@ -24,7 +24,7 @@ export interface DicCityActivity {
|
||||
|
||||
export const dicCityActivity = new Map<number, DicCityActivity>();
|
||||
export function loadCityActivity() {
|
||||
|
||||
dicCityActivity.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_CITY_ACTIVITY);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -20,7 +20,7 @@ export interface DicCityActivityReward {
|
||||
|
||||
export const dicCityActivityReward = new Map<number, DicCityActivityReward[]>();
|
||||
export function loadCityActivityReward() {
|
||||
|
||||
dicCityActivityReward.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_CITY_ACTIVITY_REWARD);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -36,6 +36,7 @@ export const dicEvent = new Map<number, DicEvent>();
|
||||
export const dicEventList = new Array<DicEvent>();
|
||||
|
||||
export function loadEvent () {
|
||||
dicEvent.clear();
|
||||
dicEventList.splice(0, dicEventList.length);
|
||||
let arr = readFileAndParse(FILENAME.DIC_EVENT);
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ export interface DicExpedition {
|
||||
|
||||
export const dicExpedition = new Map<number, DicExpedition>();
|
||||
export function loadExpedition() {
|
||||
dicExpedition.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_EXPEDITION);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface DicExpeditionPoint {
|
||||
|
||||
export const dicExpeditionPoint = new Map<number, DicExpeditionPoint>();
|
||||
export function loadExpeditionPoint() {
|
||||
|
||||
dicExpeditionPoint.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_EXPEDITION_POINT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -19,6 +19,7 @@ export interface DicFashions {
|
||||
|
||||
export const dicFashions = new Map<number, DicFashions>();
|
||||
export function loadFashions() {
|
||||
dicFashions.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_FASHIONS);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -24,6 +24,8 @@ export interface DicFriendShip {
|
||||
export const friendShips = new Map<string, DicFriendShip>();
|
||||
export const friendShipHidAandIds = new Map<number, {actorId: number, level:number}>();
|
||||
export function loadFriendShip() {
|
||||
friendShips.clear();
|
||||
friendShipHidAandIds.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_FRIEND_SHIP);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -16,7 +16,8 @@ export interface DicFriendShipLevel {
|
||||
export const maxFriendShipLv = { max: 0 };
|
||||
export const dicFriendShipLevelMap = new Map<number, DicFriendShipLevel>();
|
||||
export function loadFriendShipLevel() {
|
||||
|
||||
maxFriendShipLv.max = 0;
|
||||
dicFriendShipLevelMap.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_FRIEND_SHIP_LEVEL);
|
||||
let expSum = 0;
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface DicFuncSwitch {
|
||||
|
||||
export const dicFuncSwitch = new Map<number, DicFuncSwitch>();
|
||||
export function loadFuncSwitch() {
|
||||
dicFuncSwitch.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_FUNC_SWITCH);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface DicGacha {
|
||||
|
||||
export const dicGacha = new Map<number, DicGacha>(); // id => dic
|
||||
export function loadGacha() {
|
||||
|
||||
dicGacha.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_GACHA);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -15,7 +15,8 @@ export interface DicGachaContent {
|
||||
export const dicGachaContent = new Map<number, DicGachaContent>(); // id => dic
|
||||
export const dicGachaContentHero = new Map<number, number>(); // quality => dic
|
||||
export function loadGachaContent() {
|
||||
|
||||
dicGachaContent.clear();
|
||||
dicGachaContentHero.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_GACHA_CONTENT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -8,7 +8,7 @@ export interface DicGkPvp {
|
||||
|
||||
export const dicGateActivityPoint = new Map<number, number>();
|
||||
export function loadGateActivityPoint() {
|
||||
|
||||
dicGateActivityPoint.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_GATE_ACTIVITY_POINT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface DicGiftPackage {
|
||||
|
||||
export const dicGiftPackage = new Map<number, DicGiftPackage>();
|
||||
export function loadGiftPackage() {
|
||||
|
||||
dicGiftPackage.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_GIFT_PACKAGE);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -11,6 +11,7 @@ export interface DicGkPvp {
|
||||
export const dicGkPvp = new Map<number, DicGkPvp>();
|
||||
export const dicGkPvps = new Array<number>();
|
||||
export function loadGkPvp() {
|
||||
dicGkPvp.clear();
|
||||
dicGkPvps.splice(0, dicGkPvps.length);
|
||||
let arr = readFileAndParse(FILENAME.DIC_GK_PVP);
|
||||
|
||||
|
||||
@@ -114,6 +114,11 @@ export const blueprt = new Map<number, Array<number>>();
|
||||
export const figureCondition = new Map<number, { params: number[], id: number, gid: number }[]>(); // type => {params, id, gid}
|
||||
|
||||
export function loadGoods() {
|
||||
dicJewel.clear();
|
||||
dicGoods.clear();
|
||||
blueprt.clear();
|
||||
figureCondition.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_GOODS);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface DicGuildActiveDayReward {
|
||||
|
||||
export const dicGuildActiveDayReward = new Map<number, DicGuildActiveDayReward>();
|
||||
export function loadGuildActiveDayReward() {
|
||||
dicGuildActiveDayReward.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ACTIVE_DAY_REWARD);
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ export interface DicGuildActiveWays {
|
||||
|
||||
export const dicGuildActiveWays = new Map<number, DicGuildActiveWays>();
|
||||
export function loadGuildActiveWays() {
|
||||
dicGuildActiveWays.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_ACTIVE_POINT_WAYS);
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ export interface DicGuildActivity {
|
||||
|
||||
export const dicGuildActivity = new Map<number, DicGuildActivity>();
|
||||
export function loadGuildActivity() {
|
||||
dicGuildActivity.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_ACTIVITY);
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface DicGuildAuction {
|
||||
|
||||
export const dicGuildAuction = new Map<number, DicGuildAuction[]>();
|
||||
export function loadGuildAuction() {
|
||||
dicGuildAuction.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_AUCTION);
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface DicGuildAuth {
|
||||
|
||||
export const dicGuildAuth = new Map<number, number[]>();
|
||||
export function loadGuildAuth() {
|
||||
dicGuildAuth.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_AUTH);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface DicGuildPosition {
|
||||
|
||||
export const dicGuildPosition = new Map<number, DicGuildPosition>();
|
||||
export function loadGuildPosition() {
|
||||
dicGuildPosition.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_POSITION);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -25,6 +25,7 @@ const DicGuildTrainInfoKeys: KeysEnum<DicGuildTrainInfo> = {
|
||||
|
||||
export const dicGuildTrainInfo = new Map<string, DicGuildTrainInfo>();
|
||||
export function loadGuildTrainInfo() {
|
||||
dicGuildTrainInfo.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_TRAIN_INFO);
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ export const dicMyHeroes = new Array<number>();
|
||||
export const dicHero = new Map<number, DicHero>();
|
||||
export function loadHero() {
|
||||
dicMyHeroes.splice(0, dicMyHeroes.length);
|
||||
dicHero.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO);
|
||||
arr.forEach(o => {
|
||||
if(o.heroId > 0 && o.heroId <= 300) {
|
||||
|
||||
@@ -15,6 +15,7 @@ const DicHeroEquipKeys: KeysEnum<DicHeroEquip> = {
|
||||
}
|
||||
export const dicHeroEquip = new Map<number, DicHeroEquip>();
|
||||
export function loadHeroEquip() {
|
||||
dicHeroEquip.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO_EQUIP);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface DicHeroQualityUp {
|
||||
|
||||
export const dicHeroQualityUp = new Map<number, DicHeroQualityUp>();
|
||||
export function loadHeroQualityUp() {
|
||||
dicHeroQualityUp.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO_QUALITY_UP);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -22,7 +22,8 @@ export interface DicHeroScroll {
|
||||
export const dicHeroScroll = new Map<string, DicHeroScroll>();
|
||||
export const preHeroScroll = new Map<number, DicHeroScroll>(); // 前一个
|
||||
export function loadHeroScroll() {
|
||||
|
||||
dicHeroScroll.clear();
|
||||
preHeroScroll.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO_SCROLL);
|
||||
let pre: DicHeroScroll;
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ export interface DicHeroSkill {
|
||||
|
||||
export const dicHeroSkill = new Map<number, DicHeroSkill>();
|
||||
export function loadHeroSkill() {
|
||||
dicHeroSkill.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO_SKILL);
|
||||
arr.forEach(o => {
|
||||
o.starSeidArr = parseSeid(o.starSeid);
|
||||
|
||||
@@ -26,6 +26,8 @@ const DicHeroStarKeys: KeysEnum<DicHeroStar> = {id: true, classType: true, quali
|
||||
|
||||
export const dicHeroStar = new Map<string, DicHeroStar>();
|
||||
export function loadHeroStar() {
|
||||
dicHeroStar.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO_STAR);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -28,6 +28,8 @@ const DicHeroWakeKeys: KeysEnum<DicHeroWake> = {id: true, classType: true, quali
|
||||
|
||||
export const dicHeroWake = new Map<string, DicHeroWake>();
|
||||
export function loadHeroWake() {
|
||||
dicHeroWake.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO_WAKE);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -38,6 +38,9 @@ export const jobClassMaxGrades = new Map<number, {grade:number, jobid:number}>()
|
||||
export const jobClassAndgrades = new Map<string, {jobid:number, unlockLevel:number}>();
|
||||
|
||||
export function loadJob() {
|
||||
dicJob.clear();
|
||||
jobClassMaxGrades.clear();
|
||||
jobClassAndgrades.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_JOB);
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@ export const dicKingExp = new Map<number, {sum: number, cur: number}>();
|
||||
export const maxPlayerLv = { max: 0 };
|
||||
|
||||
export function loadKingExp() {
|
||||
|
||||
dicKingExp.clear();
|
||||
maxPlayerLv.max = 0;
|
||||
let arr = readFileAndParse(FILENAME.DIC_KING_EXP);
|
||||
let exp = 0;
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface DicKingExpRatio {
|
||||
|
||||
export const dicKingExpRatio = new Map<number, Map<KING_EXP_RATIO_TYPE, number>>();
|
||||
export function loadKingExpRatio() {
|
||||
dicKingExpRatio.clear();
|
||||
|
||||
let arr1 = readFileAndParse(FILENAME.DIC_EXP_RATIO);
|
||||
arr1.forEach(o => {
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface DicMail {
|
||||
|
||||
export const dicMail = new Map<number, DicMail>();
|
||||
export function loadMail() {
|
||||
dicMail.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_MAIL);
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface DicMainTaskStage {
|
||||
|
||||
export const dicMainTaskStage = new Map<number, DicMainTaskStage>();
|
||||
export function loadMainTaskStage() {
|
||||
dicMainTaskStage.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_MAIN_TASK_STAGE);
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ export interface DicPvpOpponent {
|
||||
|
||||
export const dicPvpOpponent = new Map<number, DicPvpOpponent>();
|
||||
export function loadPvpOpponent() {
|
||||
dicPvpOpponent.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_PVP_OPPONENT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -15,6 +15,8 @@ export const dicRankRewads = new Array<DicRankRewads>();
|
||||
export const dicRankMax: { max: DicRankRewads } = { max: undefined };
|
||||
export function loadPvpRankReward() {
|
||||
dicRankRewads.splice(0, dicRankRewads.length);
|
||||
dicRankMax.max = undefined;
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_PVP_RANK_REWARD);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -15,6 +15,8 @@ export interface DicPvpRefreshConsume {
|
||||
export const dicPvpRefreshConsume = new Map<number, RewardInter[]>();
|
||||
export const maxPvpRefreshCnt = { max: 0 };
|
||||
export function loadPvpRefreshConsume() {
|
||||
dicPvpRefreshConsume.clear();
|
||||
maxPvpRefreshCnt.max = 0;
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_PVP_REFRESH_CONSUME);
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ export interface DicQuenchConsume {
|
||||
|
||||
export const dicQuenchConsume = new Map<string, RewardInter[]>(); // equipLvl&quality => dic
|
||||
export function loadQuenchConsume() {
|
||||
dicQuenchConsume.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_QUENCH_CONSUME);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface DicQuestion {
|
||||
|
||||
export const dicQuestion = new Map<number, DicQuestion>();
|
||||
export function loadQuestion() {
|
||||
dicQuestion.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_QUESTION);
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ export interface DicRMB {
|
||||
|
||||
export const dicRMB = new Map<string, DicRMB>();
|
||||
export function loadRMB() {
|
||||
dicRMB.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_RMB);
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -28,6 +28,8 @@ const DicRaceKeys: KeysEnum<DicRaceActivity> = {id: true, type: true, effectType
|
||||
export const dicRaceActivity = new Map<number, DicRaceActivity>();
|
||||
export const dicRaceTypes = new Map<number, Map<number, number[]>>();
|
||||
export function loadRaceActivity() {
|
||||
dicRaceActivity.clear();
|
||||
dicRaceTypes.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_RACE_ACTIVITY);
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ export interface DicRandomEffectPool {
|
||||
|
||||
export const dicRandomEffectPool = new Map<number, DicRandomEffectPool>();
|
||||
export function loadRandomEffectPool() {
|
||||
dicRandomEffectPool.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_RANDOM_EFFECT_POOL);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface DicRankReward {
|
||||
|
||||
export const dicRankReward = new Map<number, DicRankReward>();
|
||||
export function loadRankReward() {
|
||||
dicRankReward.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_RANK_REWARD);
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ export interface DicRefine {
|
||||
|
||||
export const dicRefine = new Map<number, DicRefine>();
|
||||
export function loadRefine() {
|
||||
dicRefine.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_REFINE);
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ export interface DicRoleFriend {
|
||||
|
||||
export const dicRoleFriend = new Map<number, DicRoleFriend>();
|
||||
export function loadRoleFriend() {
|
||||
dicRoleFriend.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ROLE_FRIEND);
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ export interface DicRoleFriendLv {
|
||||
|
||||
export const dicRoleFriendLv = new Map<number, DicRoleFriendLv>();
|
||||
export function loadRoleFriendLv() {
|
||||
dicRoleFriendLv.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ROLE_FRIEND_LEVEL);
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ export interface DicSchool {
|
||||
|
||||
export const dicSchool = new Map<number, DicSchool>();
|
||||
export function loadSchool() {
|
||||
dicSchool.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_SCHOOL);
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ export interface DicSchoolRate {
|
||||
|
||||
export const dicSchoolRate = new Map<string, DicSchoolRate>();
|
||||
export function loadSchoolRate() {
|
||||
dicSchoolRate.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_SCHOOL_RATE);
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ export interface DicSe {
|
||||
|
||||
export const dicSe = new Map<number, DicSe>();
|
||||
export function loadSe() {
|
||||
dicSe.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_SE);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -12,6 +12,8 @@ export interface DicServerName {
|
||||
export const dicServerName = new Map<number, string>();
|
||||
export const dicServerGroupName = new Map<number, string>();
|
||||
export function loadServerName() {
|
||||
dicServerName.clear();
|
||||
dicServerGroupName.clear();
|
||||
|
||||
{
|
||||
let arr = readFileAndParse(FILENAME.DIC_SERVER_NAME);
|
||||
|
||||
@@ -15,6 +15,8 @@ export interface DicShopList {
|
||||
|
||||
export const dicShopList = new Map<number, DicShopList>();
|
||||
export function loadShopList() {
|
||||
dicShopList.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_SHOP_LIST);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -11,6 +11,8 @@ export interface DicStrengthenCost {
|
||||
|
||||
export const dicStrengthenCost = new Map<number, number>();
|
||||
export function loadStrengthenCost() {
|
||||
dicStrengthenCost.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_STRENGTHEN_COST);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -168,6 +168,16 @@ export const dicStoreBase = new Map<number, DicWishPoolBase>(); // 许愿池
|
||||
export const maxMemberCnt = { max: 0 }; // 满配最大人数
|
||||
|
||||
export function loadStructure() {
|
||||
dicStructureConsume.clear();
|
||||
dicCenterBase.clear();
|
||||
dicEquipPriduceBase.clear();
|
||||
dicBossBase.clear();
|
||||
dicBossBaseByBossLv.clear();
|
||||
dicTrainBase.clear();
|
||||
dicDonateBase.clear();
|
||||
dicWishPoolBase.clear();
|
||||
dicStoreBase.clear();
|
||||
maxMemberCnt.max = 0;
|
||||
|
||||
const DicStoreKeys: KeysEnum<DicStoreBase> = {
|
||||
id: true,
|
||||
|
||||
@@ -22,6 +22,9 @@ export interface DicSuit {
|
||||
export const dicSuit = new Map<number, DicSuit>();
|
||||
export const dicSuitByTypeAndLv = new Map<string, DicSuit>();
|
||||
export function loadSuit() {
|
||||
dicSuit.clear();
|
||||
dicSuitByTypeAndLv.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_SUIT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -99,6 +99,9 @@ taskMap.set(TASK_FUN_TYPE.ACHIEVEMENT, dicAchievement);
|
||||
|
||||
export const dicTaskType = new Map<number, DicTask[]>();
|
||||
export function loadTask() {
|
||||
dicMainTask.clear();
|
||||
dicDailyTask.clear();
|
||||
dicAchievement.clear();
|
||||
|
||||
const arrMainTask = readFileAndParse(FILENAME.DIC_MAIN_TASK);
|
||||
arrMainTask.forEach(o => {
|
||||
|
||||
@@ -14,6 +14,7 @@ export interface DicTaskBox {
|
||||
|
||||
export const dicTaskBox = new Map<number, Map<number, DicTaskBox>>();
|
||||
export function loadTaskBox() {
|
||||
dicTaskBox.clear();
|
||||
|
||||
let arr1 = readFileAndParse(FILENAME.DIC_TASK_BOX);
|
||||
arr1.forEach(o => {
|
||||
|
||||
@@ -27,6 +27,7 @@ export interface DicTeraph {
|
||||
}
|
||||
export const dicTeraph = new Map<string, DicTeraph>();
|
||||
export function loadTeraph() {
|
||||
dicTeraph.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_TERAPH);
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ const DicTitleKeys: KeysEnum<DicTitle> = {
|
||||
}
|
||||
export const dicTitle = new Map<number, DicTitle>();
|
||||
export function loadTitle() {
|
||||
dicTitle.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_TITLE);
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ export interface DicTower {
|
||||
|
||||
export const dicTower = new Map<number, DicTower>();
|
||||
export function loadTower() {
|
||||
dicTower.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_TOWER);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -34,6 +34,8 @@ export interface DicTowerTask {
|
||||
|
||||
export const dicTowerTask = new Map<number, DicTowerTask>();
|
||||
export function loadTowerTask() {
|
||||
dicTowerTask.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_TOWER_TASK);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
@@ -24,6 +24,7 @@ const DicTrainSoloRewardKeys: KeysEnum<DicTrainSoloReward> = {
|
||||
|
||||
export const dicTrainSoloReward = new Map<number, DicTrainSoloReward>();
|
||||
export function loadTrainSoloReward() {
|
||||
dicTrainSoloReward.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_TRAIN_SOLO_REWARD);
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ export const dicWar = new Map<number, DicWar>();
|
||||
export const dicWarPvp = new Array<DicWar>();
|
||||
export const dicDailyWarByType = new Map<number, DicWar[]>();
|
||||
export function loadWar() {
|
||||
dicWar.clear();
|
||||
dicDailyWarByType.clear();
|
||||
dicWarPvp.splice(0, dicWarPvp.length);
|
||||
for(let filename of WAR_RELATE_TABLES) {
|
||||
|
||||
@@ -51,6 +51,7 @@ export interface DicWarJson {
|
||||
|
||||
export const dicWarJson = new Map<number, Array<DicWarJson>>();
|
||||
export function loadWarJson() {
|
||||
dicWarJson.clear();
|
||||
readWarJsonFileAndParse().forEach(arr => {
|
||||
|
||||
let warjson = new Array<DicWarJson>();
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface DicXunbao {
|
||||
|
||||
export const dicXunbao = new Map<number, DicXunbao>();
|
||||
export function loadXunbao() {
|
||||
dicXunbao.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_XUNBAO);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
Reference in New Issue
Block a user