private static void InitBuChangDict() { lock (BuChangManager._BuChangItemDict) { BuChangManager._BuChangItemDict.Clear(); } foreach (SystemXmlItem systemBuChangItem in GameManager.SystemBuChang.SystemXmlItemDict.Values) { BuChangItem buChangItem = new BuChangItem { MinLevel = systemBuChangItem.GetIntValue("MinLevel", -1), MinZhuanSheng = systemBuChangItem.GetIntValue("MinZhuanSheng", -1), MaxLevel = systemBuChangItem.GetIntValue("MaxLevel", -1), MaxZhuanSheng = systemBuChangItem.GetIntValue("MaxZhuanSheng", -1), Experience = Math.Max(0L, (long)systemBuChangItem.GetDoubleValue("AwardExp")), MoJing = Math.Max(0, systemBuChangItem.GetIntValue("MoJing", -1)), GoodsDataList = BuChangManager.ParseGoodsDataList(systemBuChangItem.GetStringValue("Goods")) }; int minUnionLevel = Global.GetUnionLevel(buChangItem.MinZhuanSheng, buChangItem.MinLevel, false); int maxUnionLevel = Global.GetUnionLevel(buChangItem.MaxZhuanSheng, buChangItem.MaxLevel, false); lock (BuChangManager._BuChangItemDict) { BuChangManager._BuChangItemDict[new RangeKey(minUnionLevel, maxUnionLevel, null)] = buChangItem; } } }
public static List <GoodsData> GetBuChangGoodsDataList(GameClient client) { BuChangItem buChangItem = BuChangManager.GetBuChangItem(Global.GetUnionLevel(client, false)); List <GoodsData> result; if (null == buChangItem) { result = null; } else { result = buChangItem.GoodsDataList; } return(result); }
public static int GetBuChangBindYuanBao(GameClient client) { BuChangItem buChangItem = BuChangManager.GetBuChangItem(Global.GetUnionLevel(client, false)); int result; if (null == buChangItem) { result = 0; } else { result = buChangItem.MoJing; } return(result); }
public static long GetBuChangExp(GameClient client) { BuChangItem buChangItem = BuChangManager.GetBuChangItem(Global.GetUnionLevel(client, false)); long result; if (null == buChangItem) { result = 0L; } else { result = buChangItem.Experience; } return(result); }
public static void GiveBuChang(GameClient client) { if (!BuChangManager.CanGiveBuChang()) { GameManager.LuaMgr.Error(client, GLang.GetLang(24, new object[0]), 0); } else { BuChangItem buChangItem = BuChangManager.GetBuChangItem(Global.GetUnionLevel(client, false)); if (null == buChangItem) { GameManager.LuaMgr.Error(client, GLang.GetLang(25, new object[0]), 0); } else if (!BuChangManager.HasEnoughBagSpaceForAwardGoods(client, buChangItem)) { GameManager.LuaMgr.Error(client, GLang.GetLang(26, new object[0]), 0); } else { DateTime buChangDateTime = Global.GetBuChangStartDay(); int buChangFlag = Global.GetRoleParamsInt32FromDB(client, "BuChangFlag"); if (buChangDateTime.DayOfYear == buChangFlag) { GameManager.LuaMgr.Error(client, GLang.GetLang(27, new object[0]), 0); } else { Global.SaveRoleParamsInt32ValueToDB(client, "BuChangFlag", buChangDateTime.DayOfYear, true); for (int i = 0; i < buChangItem.GoodsDataList.Count; i++) { Global.AddGoodsDBCommand(Global._TCPManager.TcpOutPacketPool, client, buChangItem.GoodsDataList[i].GoodsID, buChangItem.GoodsDataList[i].GCount, buChangItem.GoodsDataList[i].Quality, "", buChangItem.GoodsDataList[i].Forge_level, buChangItem.GoodsDataList[i].Binding, 0, "", true, 1, "系统补偿物品", "1900-01-01 12:00:00", buChangItem.GoodsDataList[i].AddPropIndex, buChangItem.GoodsDataList[i].BornIndex, buChangItem.GoodsDataList[i].Lucky, buChangItem.GoodsDataList[i].Strong, 0, 0, 0, null, null, 0, true); } if (buChangItem.MoJing > 0) { GameManager.ClientMgr.ModifyTianDiJingYuanValue(client, buChangItem.MoJing, "系统补偿", false, true, false); } if (buChangItem.Experience > 0L) { GameManager.ClientMgr.ProcessRoleExperience(client, buChangItem.Experience, false, true, false, "none"); } client._IconStateMgr.CheckBuChangState(client); client._IconStateMgr.SendIconStateToClient(client); } } } }
public static BuChangItem GetBuChangItem(int unionLevel) { BuChangItem buChangItem = null; lock (BuChangManager._BuChangItemDict) { if (BuChangManager._BuChangItemDict.TryGetValue(unionLevel, out buChangItem)) { return(buChangItem); } } BuChangManager.InitBuChangDict(); lock (BuChangManager._BuChangItemDict) { if (BuChangManager._BuChangItemDict.TryGetValue(unionLevel, out buChangItem)) { return(buChangItem); } } return(buChangItem); }
/// <summary> /// 获取补偿的物品名称 /// </summary> /// <param name="client"></param> /// <returns></returns> public string GetBuChangGoodsNames(GameClient client) { List <GoodsData> goodsDataList = BuChangManager.GetBuChangGoodsDataList(client); if (null == goodsDataList) { return(""); } StringBuilder sb = new StringBuilder(); for (int i = 0; i < goodsDataList.Count; i++) { if (i > 0) { sb.Append(" "); } sb.AppendFormat("{0}({1})", Global.GetGoodsNameByID(goodsDataList[i].GoodsID), goodsDataList[i].GCount); } return(sb.ToString()); }
public static bool CheckGiveBuChang(GameClient client) { bool result; if (!BuChangManager.CanGiveBuChang()) { result = false; } else { BuChangItem buChangItem = BuChangManager.GetBuChangItem(Global.GetUnionLevel(client, false)); if (null == buChangItem) { result = false; } else { DateTime buChangDateTime = Global.GetBuChangStartDay(); int buChangFlag = Global.GetRoleParamsInt32FromDB(client, "BuChangFlag"); result = (buChangDateTime.DayOfYear != buChangFlag); } } return(result); }
public static void ReloadAllXmlFile() { WorldLevelManager.getInstance().InitConfig(); WorldLevelManager.getInstance().ResetWorldLevel(); ReloadXmlManager.ReloadXmlFile_config_platconfig(); ReloadXmlManager.ReloadXmlFile_config_gifts_activities(); ReloadXmlManager.ReloadXmlFile_config_gifts_biggift(); ReloadXmlManager.ReloadXmlFile_config_gifts_loginnumgift(); ReloadXmlManager.ReloadXmlFile_config_gifts_huodongloginnumgift(); ReloadXmlManager.ReloadXmlFile_config_gifts_newrolegift(); ReloadXmlManager.ReloadXmlFile_config_combat_effectiveness_gift(); ReloadXmlManager.ReloadXmlFile_config_gifts_uplevelgift(); ReloadXmlManager.ReloadXmlFile_config_gifts_onlietimegift(); ReloadXmlManager.ReloadXmlFile_config_mall(); ReloadXmlManager.ReloadXmlFile_config_monstergoodslist(); ReloadXmlManager.ReloadXmlFile_config_broadcastinfos(); ReloadXmlManager.ReloadXmlFile_config_specialtimes(); ReloadXmlManager.ReloadXmlFile_config_battle(); ReloadXmlManager.ReloadXmlFile_config_ArenaBattle(); ReloadXmlManager.ReloadXmlFile_config_popupwin(); ReloadXmlManager.ReloadXmlFile_config_npcscripts(); ReloadXmlManager.ReloadXmlFile_config_systemoperations(); ReloadXmlManager.ReloadXmlFile_config_systemparams(); ReloadXmlManager.ReloadXmlFile_config_goodsmergeitems(); ReloadXmlManager.ReloadXmlFile_config_qizhengegoods(); ReloadXmlManager.ReloadXmlFile_config_npcsalelist(); ReloadXmlManager.ReloadXmlFile_config_goods(); ReloadXmlManager.ReloadXmlFile_config_goodspack(); ReloadXmlManager.ReloadXmlFile_config_systemtasks(); ReloadXmlManager.ReloadXmlFile_config_equipupgrade(); ReloadXmlManager.ReloadXmlFile_config_dig(); ReloadXmlManager.ReloadXmlFile_config_battleexp(); ReloadXmlManager.ReloadXmlFile_config_bangzhanawards(); ReloadXmlManager.ReloadXmlFile_config_rebirth(); ReloadXmlManager.ReloadXmlFile_config_Award(); ReloadXmlManager.ReloadXmlFile_config_EquipBorn(); ReloadXmlManager.ReloadXmlFile_config_BornName(); ReloadXmlManager.ReloadXmlFile_config_gifts_FanLi(); ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiSong(); ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_LevelKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_EquipKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_HorseKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_JingMaiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_VipDailyAwards(); ReloadXmlManager.ReloadXmlFile_config_ActivityTip(); ReloadXmlManager.ReloadXmlFile_config_LuckyAward(); ReloadXmlManager.ReloadXmlFile_config_Lucky(); ReloadXmlManager.ReloadXmlFile_config_ChengJiu(); ReloadXmlManager.ReloadXmlFile_config_ChengJiuBuff(); ReloadXmlManager.ReloadXmlFile_config_JingMai(); ReloadXmlManager.ReloadXmlFile_config_WuXue(); ReloadXmlManager.ReloadXmlFile_config_ZuanHuang(); ReloadXmlManager.ReloadXmlFile_config_Vip(); ReloadXmlManager.ReloadXmlFile_config_QiangGou(); ReloadXmlManager.ReloadXmlFile_config_HeFuQiangGou(); ReloadXmlManager.ReloadXmlFile_config_JieRiQiangGou(); ReloadXmlManager.ReloadXmlFile_config_SystemOpen(); ReloadXmlManager.ReloadXmlFile_config_DailyActive(); ReloadXmlManager.ReloadXmlFile_config_DailyActiveAward(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiType(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiLiBao(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiDengLu(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiVip(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiChongZhiSong(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiLeiJi(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiBaoXiang(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiXiaoFeiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiChongZhiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiTotalConsume(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiMultAward(); ReloadXmlManager.ReloadXmlFile_config_bossAI(); ReloadXmlManager.ReloadXmlFile_config_TuoZhan(); ReloadXmlManager.ReloadXmlFile_config_MoJingAndQiFu(); ReloadXmlManager.ReloadXmlFile_config_TotalLoginDataInfo(); GameManager.SystemMagicsMgr.ReloadLoadFromXMlFile(); GameManager.SystemMagicQuickMgr.LoadMagicItemsDict(GameManager.SystemMagicsMgr); HuodongCachingMgr.ResetXinXiaoFeiKingActivity(); HuodongCachingMgr.ResetHeFuActivityConfig(); HuodongCachingMgr.ResetHeFuLoginActivity(); HuodongCachingMgr.ResetHeFuTotalLoginActivity(); HuodongCachingMgr.ResetHeFuRechargeActivity(); HuodongCachingMgr.ResetHeFuPKKingActivity(); HuodongCachingMgr.ResetHeFuAwardTimeActivity(); HuodongCachingMgr.ResetHeFuLuoLanActivity(); HuodongCachingMgr.ResetThemeActivityConfig(); HuodongCachingMgr.ResetThemeDaLiBaoActivity(); HuodongCachingMgr.ResetThemeDuiHuanActivity(); HuodongCachingMgr.ResetThemeZhiGouActivity(); HuodongCachingMgr.ResetJieriActivityConfig(); HuodongCachingMgr.ResetJieriDaLiBaoActivity(); HuodongCachingMgr.ResetJieRiDengLuActivity(); HuodongCachingMgr.ResetJieriCZSongActivity(); HuodongCachingMgr.ResetJieRiLeiJiCZActivity(); HuodongCachingMgr.ResetJieRiTotalConsumeActivity(); HuodongCachingMgr.ResetJieRiMultAwardActivity(); HuodongCachingMgr.ResetJieRiZiKaLiaBaoActivity(); HuodongCachingMgr.ResetJieRiXiaoFeiKingActivity(); HuodongCachingMgr.ResetJieRiCZKingActivity(); HuodongCachingMgr.ResetJieriGiveActivity(); HuodongCachingMgr.ResetJieRiGiveKingActivity(); HuodongCachingMgr.ResetJieriRecvKingActivity(); HuodongCachingMgr.ResetJieRiFanLiAwardActivity(); HuodongCachingMgr.ResetJieriLianXuChargeActivity(); HuodongCachingMgr.ResetJieriRecvActivity(); HuodongCachingMgr.ResetJieriPlatChargeKingActivity(); HuodongCachingMgr.ResetFirstChongZhiGift(); HuodongCachingMgr.ResetDanBiChongZhiActivity(); HuodongCachingMgr.ResetTotalChargeActivity(); HuodongCachingMgr.ResetTotalConsumeActivity(); HuodongCachingMgr.ResetSeriesLoginItem(); HuodongCachingMgr.ResetEveryDayOnLineAwardItem(); HuodongCachingMgr.ResetJieriIPointsExchangeActivity(); HuodongCachingMgr.ResetJieriFuLiActivity(); HuodongCachingMgr.ResetJieriVIPYouHuiAct(); HuodongCachingMgr.ResetJieRiMeiRiLeiJiActivity(); HuodongCachingMgr.ResetJieriPCKingActivityEveryDay(); OlympicsManager.getInstance().InitOlympics(); UserReturnManager.getInstance().initConfigInfo(); HuodongCachingMgr.ResetSpecPriorityActivity(); HuodongCachingMgr.ResetXinFanLiActivity(); HuodongCachingMgr.ResetWeedEndInputActivity(); HuodongCachingMgr.ResetSpecialActivity(); HuodongCachingMgr.ResetJieRiCZQGActivity(); HuodongCachingMgr.ResetOneDollarBuyActivity(); HuodongCachingMgr.ResetJieRiSuperInputFanLiActivity(); HuodongCachingMgr.ResetOneDollarChongZhiActivity(); HuodongCachingMgr.ResetEverydayActivity(); HuodongCachingMgr.ResetInputFanLiNewActivity(); HuodongCachingMgr.ResetRegressActiveOpen(); HuodongCachingMgr.ResetRegressActiveTotalRecharge(); HuodongCachingMgr.ResetRegressActiveStore(); HuodongCachingMgr.ResetRegressActiveDayBuy(); HuodongCachingMgr.ResetRegressActiveSignGift(); WebOldPlayerManager.ReloadXml(); TenManager.initConfig(); Global.CachingJieriXmlData = null; Global.CachingSpecActXmlData = null; Global.CachingEverydayActXmlData = null; Global.CachingThemeActXmlData = null; Global.CachingSpecPriorityActXmlData = null; TodayManager.InitConfig(); BuChangManager.ResetBuChangItemDict(); HuodongCachingMgr.ResetMeiRiChongZhiActivity(); HuodongCachingMgr.ResetChongJiHaoLiActivity(); HuodongCachingMgr.ResetShenZhuangJiQiHuiKuiHaoLiActivity(); HuodongCachingMgr.ResetYueDuZhuanPanActivity(); GongGaoDataManager.LoadGongGaoData(); SaleManager.InitConfig(); GameManager.systemImpetrateByLevelMgr.ReloadLoadFromXMlFile(); QianKunManager.LoadImpetrateItemsInfo(); QianKunManager.LoadImpetrateItemsInfoFree(); QianKunManager.LoadImpetrateItemsInfoHuodong(); QianKunManager.LoadImpetrateItemsInfoFreeHuoDong(); QianKunManager.LoadImpetrateItemsInfoTeQuan(); QianKunManager.LoadImpetrateItemsInfoFreeTeQuan(); GameManager.systemXingYunChouJiangMgr.ReloadLoadFromXMlFile(); GameManager.systemYueDuZhuanPanChouJiangMgr.ReloadLoadFromXMlFile(); Global.LoadSpecialMachineConfig(); ElementhrtsManager.LoadRefineType(); ElementhrtsManager.LoadElementHrtsBase(); ElementhrtsManager.LoadElementHrtsLevelInfo(); ElementhrtsManager.LoadSpecialElementHrtsExp(); GameManager.QingGongYanMgr.LoadQingGongYanConfig(); CopyTargetManager.LoadConfig(); CallPetManager.LoadCallPetType(); CallPetManager.LoadCallPetConfig(); CallPetManager.LoadCallPetSystem(); ShenShiManager.getInstance().ReloadConfig(); Global.LoadGuWuMaps(); Global.LoadAutoReviveMaps(); GameManager.MonsterZoneMgr.LoadAllMonsterXml(); GameManager.VersionSystemOpenMgr.LoadVersionSystemOpenData(); UserMoneyMgr.getInstance().InitConfig(); RobotTaskValidator.getInstance().LoadRobotTaskData(); GameManager.MerlinMagicBookMgr.LoadMerlinConfigData(); GameManager.FluorescentGemMgr.LoadFluorescentGemConfigData(); SingletonTemplate <GetInterestingDataMgr> .Instance().LoadConfig(); SingletonTemplate <CreateRoleLimitManager> .Instance().LoadConfig(); TianTiManager.getInstance().InitConfig(true); TianTi5v5Manager.getInstance().InitConfig(true); YongZheZhanChangManager.getInstance().InitConfig(); KingOfBattleManager.getInstance().InitConfig(); BangHuiMatchManager.getInstance().InitConfig(); ZorkBattleManager.getInstance().InitConfig(); KarenBattleManager.getInstance().InitConfig(); KarenBattleManager_MapWest.getInstance().InitConfig(); KarenBattleManager_MapEast.getInstance().InitConfig(); KuaFuBossManager.getInstance().InitConfig(); KuaFuMapManager.getInstance().InitConfig(); FashionManager.getInstance().InitConfig(); OrnamentManager.getInstance().InitConfig(); ShenJiFuWenManager.getInstance().InitConfig(); YaoSaiJianYuManager.getInstance().InitConfig(); AlchemyManager.getInstance().InitConfig(); ZuoQiManager.getInstance().ReLoadConfig(false); RebornManager.getInstance().InitConfig(true); RebornBoss.getInstance().InitConfig(); SpecPlatFuLiManager.getInstance().InitConfig(); EraManager.getInstance().InitConfig(); JingLingQiYuanManager.getInstance().InitConfig(); AllThingsCalcItem.InitAllForgeLevelInfo(); SingletonTemplate <TradeBlackManager> .Instance().LoadConfig(); Global.LoadLangDict(); LogFilterConfig.InitConfig(); TenRetutnManager.getInstance().InitConfig(); VideoLogic.getInstance().LoadVideoXml(); Data.LoadConfig(); GiftCodeNewManager.getInstance().initGiftCode(); AoYunDaTiManager.getInstance().LoadConfig(); ZhuanPanManager.getInstance().LoadConfig(); JueXingManager.getInstance().LoadConfig(); TalentManager.LoadTalentSpecialData(); AssemblyPatchManager.getInstance().initialize(); IPStatisticsManager.getInstance().LoadConfig(); JunTuanManager.getInstance().InitConfig(); HongBaoManager.getInstance().InitConfig(); HuiJiManager.getInstance().InitConfig(); DeControl.getInstance().InitConfig(); GVoiceManager.getInstance().InitConfig(); KuaFuLueDuoManager.getInstance().InitConfig(); WanMoXiaGuManager.getInstance().InitConfig(); ThemeBoss.getInstance().InitConfig(); ArmorManager.getInstance().InitConfig(); CompBattleManager.getInstance().InitConfig(); CompMineManager.getInstance().InitConfig(); JingLingYuanSuJueXingManager.getInstance().LoadConfig(); BianShenManager.getInstance().InitConfig(); ZhanDuiZhengBaManager.getInstance().InitConfig(); EscapeBattleManager.getInstance().InitConfig(); MazingerStoreManager.getInstance().InitConfig(); BuffManager.InitConfig(); GoldAuctionConfigModel.LoadConfig(); BoCaiConfigMgr.LoadConfig(true); }
/// <summary> /// 给予补偿 /// </summary> /// <param name="client"></param> public void GiveBuChang(GameClient client) { BuChangManager.GiveBuChang(client); }
/// <summary> /// 获取补偿的绑定元宝 /// </summary> /// <param name="client"></param> /// <returns></returns> public int GetBuChangBindYuanBao(GameClient client) { return(BuChangManager.GetBuChangBindYuanBao(client)); }
/// <summary> /// 获取补偿的经验 /// </summary> /// <param name="client"></param> /// <returns></returns> public long GetBuChangExp(GameClient client) { return(BuChangManager.GetBuChangExp(client)); }
public static void ResetBuChangItemDict() { GameManager.SystemBuChang.ReloadLoadFromXMlFile(); BuChangManager.InitBuChangDict(); }
/// <summary> /// 重新加载所有程序配置参数文件 /// </summary> /// <param name="xmlFileName"></param> /// <returns></returns> public static void ReloadAllXmlFile() { ReloadXmlFile_config_platconfig(); ReloadXmlFile_config_gifts_activities(); ReloadXmlFile_config_gifts_biggift(); ReloadXmlFile_config_gifts_loginnumgift(); ReloadXmlFile_config_gifts_huodongloginnumgift(); ReloadXmlFile_config_gifts_newrolegift(); ReloadXmlFile_config_gifts_uplevelgift(); ReloadXmlFile_config_gifts_onlietimegift(); ReloadXmlFile_config_mall(); ReloadXmlFile_config_monstergoodslist(); ReloadXmlFile_config_broadcastinfos(); ReloadXmlFile_config_specialtimes(); ReloadXmlFile_config_battle(); ReloadXmlFile_config_ArenaBattle(); ReloadXmlFile_config_popupwin(); ReloadXmlFile_config_npcscripts(); ReloadXmlFile_config_systemoperations(); ReloadXmlFile_config_systemparams(); ReloadXmlFile_config_goodsmergeitems(); ReloadXmlFile_config_qizhengegoods(); ReloadXmlFile_config_npcsalelist(); ReloadXmlFile_config_goods(); ReloadXmlFile_config_goodspack(); ReloadXmlFile_config_systemtasks(); ReloadXmlFile_config_equipupgrade(); ReloadXmlFile_config_dig(); ReloadXmlFile_config_battleexp(); ReloadXmlFile_config_bangzhanawards(); ReloadXmlFile_config_rebirth(); ReloadXmlFile_config_Award(); ReloadXmlFile_config_EquipBorn(); ReloadXmlFile_config_BornName(); ReloadXmlFile_config_gifts_FanLi(); ReloadXmlFile_config_gifts_ChongZhiSong(); ReloadXmlFile_config_gifts_ChongZhiKing(); ReloadXmlFile_config_gifts_LevelKing(); ReloadXmlFile_config_gifts_EquipKing(); ReloadXmlFile_config_gifts_HorseKing(); ReloadXmlFile_config_gifts_JingMaiKing(); ReloadXmlFile_config_gifts_VipDailyAwards(); ReloadXmlFile_config_ActivityTip(); ReloadXmlFile_config_LuckyAward(); ReloadXmlFile_config_Lucky(); ReloadXmlFile_config_ChengJiu(); ReloadXmlFile_config_ChengJiuBuff(); ReloadXmlFile_config_JingMai(); ReloadXmlFile_config_WuXue(); ReloadXmlFile_config_ZuanHuang(); ReloadXmlFile_config_Vip(); ReloadXmlFile_config_QiangGou(); ReloadXmlFile_config_HeFuQiangGou(); ReloadXmlFile_config_JieRiQiangGou(); ReloadXmlFile_config_SystemOpen(); ReloadXmlFile_config_DailyActive(); ReloadXmlFile_config_DailyActiveAward(); ReloadXmlFile_config_gifts_JieRiType(); ReloadXmlFile_config_gifts_JieRiLiBao(); ReloadXmlFile_config_gifts_JieRiDengLu(); ReloadXmlFile_config_gifts_JieRiVip(); ReloadXmlFile_config_gifts_JieRiChongZhiSong(); ReloadXmlFile_config_gifts_JieRiLeiJi(); ReloadXmlFile_config_gifts_JieRiBaoXiang(); ReloadXmlFile_config_gifts_JieRiXiaoFeiKing(); ReloadXmlFile_config_gifts_JieRiChongZhiKing(); ReloadXmlFile_config_gifts_JieRiTotalConsume(); ReloadXmlFile_config_gifts_JieRiMultAward(); ReloadXmlFile_config_bossAI(); ReloadXmlFile_config_TuoZhan(); ReloadXmlFile_config_MoJingAndQiFu(); ReloadXmlFile_config_TotalLoginDataInfo(); // 新服活动 HuodongCachingMgr.ResetXinXiaoFeiKingActivity(); // 重载合服活动配置 HuodongCachingMgr.ResetHeFuActivityConfig(); HuodongCachingMgr.ResetHeFuLoginActivity(); HuodongCachingMgr.ResetHeFuTotalLoginActivity(); HuodongCachingMgr.ResetHeFuRechargeActivity(); HuodongCachingMgr.ResetHeFuPKKingActivity(); HuodongCachingMgr.ResetHeFuAwardTimeActivity(); HuodongCachingMgr.ResetHeFuLuoLanActivity(); // 节日活动配置 HuodongCachingMgr.ResetJieriActivityConfig(); HuodongCachingMgr.ResetJieriDaLiBaoActivity(); HuodongCachingMgr.ResetJieRiDengLuActivity(); HuodongCachingMgr.ResetJieriCZSongActivity(); HuodongCachingMgr.ResetJieRiLeiJiCZActivity(); HuodongCachingMgr.ResetJieRiTotalConsumeActivity(); HuodongCachingMgr.ResetJieRiMultAwardActivity(); HuodongCachingMgr.ResetJieRiZiKaLiaBaoActivity(); HuodongCachingMgr.ResetJieRiXiaoFeiKingActivity(); HuodongCachingMgr.ResetJieRiCZKingActivity(); HuodongCachingMgr.ResetJieriGiveActivity(); HuodongCachingMgr.ResetJieRiGiveKingActivity(); HuodongCachingMgr.ResetJieriRecvKingActivity(); HuodongCachingMgr.ResetJieRiFanLiAwardActivity(); HuodongCachingMgr.ResetJieriLianXuChargeActivity(); HuodongCachingMgr.ResetJieriRecvActivity(); HuodongCachingMgr.ResetJieriPlatChargeKingActivity(); HuodongCachingMgr.ResetFirstChongZhiGift(); HuodongCachingMgr.ResetTotalChargeActivity(); HuodongCachingMgr.ResetTotalConsumeActivity(); HuodongCachingMgr.ResetSeriesLoginItem(); HuodongCachingMgr.ResetEveryDayOnLineAwardItem(); HuodongCachingMgr.ResetJieriIPointsExchangeActivity(); HuodongCachingMgr.ResetJieriFuLiActivity(); if (!UserReturnManager.getInstance().IsUserReturnOpen()) { UserReturnManager.getInstance().initConfigInfo(); } //HuodongCachingMgr.ResetHeFuVIPActivity(); //HuodongCachingMgr.ResetHeFuWCKingActivity(); HuodongCachingMgr.ResetXinFanLiActivity(); HuodongCachingMgr.ResetWeedEndInputActivity(); HuodongCachingMgr.ResetSpecialActivity(); Global.CachingJieriXmlData = null; Global.CachingSpecActXmlData = null; /// 重置补偿的字典 BuChangManager.ResetBuChangItemDict(); // begin [7/24/2013 LiaoWei] //重置获取每日充值 HuodongCachingMgr.ResetMeiRiChongZhiActivity(); // 重置获取冲级豪礼活动的配置项 HuodongCachingMgr.ResetChongJiHaoLiActivity(); // 重置神装激情回馈 HuodongCachingMgr.ResetShenZhuangJiQiHuiKuiHaoLiActivity(); // 重置月度抽奖活动 HuodongCachingMgr.ResetYueDuZhuanPanActivity(); //进入游戏时公告信息 GongGaoDataManager.LoadGongGaoData(); // end [7/24/2013 LiaoWei] //GameManager.systemQianKunMgr.ReloadLoadFromXMlFile(); // 以前的祈福不能用了 [8/28/2014 LiaoWei] GameManager.systemImpetrateByLevelMgr.ReloadLoadFromXMlFile(); QianKunManager.LoadImpetrateItemsInfo(); QianKunManager.LoadImpetrateItemsInfoFree(); QianKunManager.LoadImpetrateItemsInfoHuodong(); GameManager.systemXingYunChouJiangMgr.ReloadLoadFromXMlFile(); GameManager.systemYueDuZhuanPanChouJiangMgr.ReloadLoadFromXMlFile(); Global.LoadSpecialMachineConfig(); ElementhrtsManager.LoadRefineType(); ElementhrtsManager.LoadElementHrtsBase(); ElementhrtsManager.LoadElementHrtsLevelInfo(); ElementhrtsManager.LoadSpecialElementHrtsExp(); // 加载庆功宴配置 GameManager.QingGongYanMgr.LoadQingGongYanConfig(); // 加载精灵召唤配置 CallPetManager.LoadCallPetType(); CallPetManager.LoadCallPetConfig(); CallPetManager.LoadCallPetSystem(); Global.LoadGuWuMaps(); // 加载自动重生地图 [XSea 2015/6/19] Global.LoadAutoReviveMaps(); GameManager.MonsterZoneMgr.LoadAllMonsterXml(); // 加载版本系统开放数据 [XSea 2015/5/4] GameManager.VersionSystemOpenMgr.LoadVersionSystemOpenData(); // 充值配置文件 Global.InitFirstChargeConfigData(); RobotTaskValidator.getInstance().LoadRobotTaskData(); // 梅林魔法书 GameManager.MerlinMagicBookMgr.LoadMerlinConfigData(); // 荧光宝石 [XSea 2015/8/13] GameManager.FluorescentGemMgr.LoadFluorescentGemConfigData(); GetInterestingDataMgr.Instance().LoadConfig(); // 玩家创建角色限制管理 CreateRoleLimitManager.Instance().LoadConfig(); //加载勇者战场配置文件 YongZheZhanChangManager.getInstance().InitConfig(); //加载王者战场配置文件 KingOfBattleManager.getInstance().InitConfig(); //跨服boss配置文件 KuaFuBossManager.getInstance().InitConfig(); //跨服主线地图配置文件 KuaFuMapManager.getInstance().InitConfig(); //初始化配置 FashionManager.getInstance().InitConfig(); // 精灵奇缘 JingLingQiYuanManager.getInstance().InitConfig(); //所有装备强化附加属性 AllThingsCalcItem.InitAllForgeLevelInfo(); TradeBlackManager.Instance().LoadConfig(); Global.LoadLangDict(); LogFilterConfig.InitConfig(); TenRetutnManager.getInstance().InitConfig(); //加载视频聊天室房间数据 VideoLogic.LoadVideoXml(); Data.LoadConfig(); GiftCodeNewManager.getInstance().initGiftCode();//礼包码 }
/// <summary> /// 重新加载所有程序配置参数文件 /// </summary> /// <param name="xmlFileName"></param> /// <returns></returns> public static void ReloadAllXmlFile() { ReloadXmlFile_config_gifts_activities(); ReloadXmlFile_config_gifts_biggift(); ReloadXmlFile_config_gifts_loginnumgift(); ReloadXmlFile_config_gifts_huodongloginnumgift(); ReloadXmlFile_config_gifts_newrolegift(); ReloadXmlFile_config_gifts_uplevelgift(); ReloadXmlFile_config_gifts_onlietimegift(); ReloadXmlFile_config_mall(); ReloadXmlFile_config_monstergoodslist(); ReloadXmlFile_config_broadcastinfos(); ReloadXmlFile_config_specialtimes(); ReloadXmlFile_config_battle(); ReloadXmlFile_config_ArenaBattle(); ReloadXmlFile_config_popupwin(); ReloadXmlFile_config_npcscripts(); ReloadXmlFile_config_systemoperations(); ReloadXmlFile_config_systemparams(); ReloadXmlFile_config_goodsmergeitems(); ReloadXmlFile_config_qizhengegoods(); ReloadXmlFile_config_npcsalelist(); ReloadXmlFile_config_goods(); ReloadXmlFile_config_goodspack(); ReloadXmlFile_config_systemtasks(); ReloadXmlFile_config_equipupgrade(); ReloadXmlFile_config_dig(); ReloadXmlFile_config_battleexp(); ReloadXmlFile_config_bangzhanawards(); ReloadXmlFile_config_rebirth(); ReloadXmlFile_config_Award(); ReloadXmlFile_config_EquipBorn(); ReloadXmlFile_config_BornName(); ReloadXmlFile_config_gifts_FanLi(); ReloadXmlFile_config_gifts_ChongZhiSong(); ReloadXmlFile_config_gifts_ChongZhiKing(); ReloadXmlFile_config_gifts_LevelKing(); ReloadXmlFile_config_gifts_EquipKing(); ReloadXmlFile_config_gifts_HorseKing(); ReloadXmlFile_config_gifts_JingMaiKing(); ReloadXmlFile_config_gifts_VipDailyAwards(); ReloadXmlFile_config_ActivityTip(); ReloadXmlFile_config_LuckyAward(); ReloadXmlFile_config_Lucky(); ReloadXmlFile_config_ChengJiu(); ReloadXmlFile_config_ChengJiuBuff(); ReloadXmlFile_config_JingMai(); ReloadXmlFile_config_WuXue(); ReloadXmlFile_config_ZuanHuang(); ReloadXmlFile_config_Vip(); ReloadXmlFile_config_QiangGou(); ReloadXmlFile_config_HeFuQiangGou(); ReloadXmlFile_config_JieRiQiangGou(); ReloadXmlFile_config_SystemOpen(); ReloadXmlFile_config_DailyActive(); ReloadXmlFile_config_DailyActiveAward(); ReloadXmlFile_config_gifts_JieRiType(); ReloadXmlFile_config_gifts_JieRiLiBao(); ReloadXmlFile_config_gifts_JieRiDengLu(); ReloadXmlFile_config_gifts_JieRiVip(); ReloadXmlFile_config_gifts_JieRiChongZhiSong(); ReloadXmlFile_config_gifts_JieRiLeiJi(); ReloadXmlFile_config_gifts_JieRiBaoXiang(); ReloadXmlFile_config_gifts_JieRiXiaoFeiKing(); ReloadXmlFile_config_gifts_JieRiChongZhiKing(); ReloadXmlFile_config_gifts_JieRiTotalConsume(); ReloadXmlFile_config_gifts_JieRiMultAward(); ReloadXmlFile_config_bossAI(); ReloadXmlFile_config_TuoZhan(); // 重载合服活动配置 HuodongCachingMgr.ResetHeFuActivityConfig(); HuodongCachingMgr.ResetHeFuLoginActivity(); HuodongCachingMgr.ResetHeFuTotalLoginActivity(); HuodongCachingMgr.ResetHeFuRechargeActivity(); HuodongCachingMgr.ResetHeFuPKKingActivity(); HuodongCachingMgr.ResetHeFuAwardTimeActivity(); // 节日活动配置 HuodongCachingMgr.ResetJieriActivityConfig(); HuodongCachingMgr.ResetJieriDaLiBaoActivity(); HuodongCachingMgr.ResetJieRiDengLuActivity(); HuodongCachingMgr.ResetJieriCZSongActivity(); HuodongCachingMgr.ResetJieRiLeiJiCZActivity(); HuodongCachingMgr.ResetJieRiTotalConsumeActivity(); HuodongCachingMgr.ResetJieRiMultAwardActivity(); HuodongCachingMgr.ResetJieRiZiKaLiaBaoActivity(); HuodongCachingMgr.ResetJieRiXiaoFeiKingActivity(); HuodongCachingMgr.ResetJieRiCZKingActivity(); //HuodongCachingMgr.ResetHeFuVIPActivity(); //HuodongCachingMgr.ResetHeFuWCKingActivity(); HuodongCachingMgr.ResetXinFanLiActivity(); Global.CachingJieriXmlData = null; /// 重置补偿的字典 BuChangManager.ResetBuChangItemDict(); // begin [7/24/2013 LiaoWei] //重置获取每日充值 HuodongCachingMgr.ResetMeiRiChongZhiActivity(); // 重置获取冲级豪礼活动的配置项 HuodongCachingMgr.ResetChongJiHaoLiActivity(); // 重置神装激情回馈 HuodongCachingMgr.ResetShenZhuangJiQiHuiKuiHaoLiActivity(); // 重置月度抽奖活动 HuodongCachingMgr.ResetYueDuZhuanPanActivity(); //进入游戏时公告信息 GongGaoDataManager.LoadGongGaoData(); // end [7/24/2013 LiaoWei] //GameManager.systemQianKunMgr.ReloadLoadFromXMlFile(); // 以前的祈福不能用了 [8/28/2014 LiaoWei] GameManager.systemImpetrateByLevelMgr.ReloadLoadFromXMlFile(); QianKunManager.LoadImpetrateItemsInfo(); GameManager.systemXingYunChouJiangMgr.ReloadLoadFromXMlFile(); GameManager.systemYueDuZhuanPanChouJiangMgr.ReloadLoadFromXMlFile(); Global.LoadSpecialMachineConfig(); ElementhrtsManager.LoadRefineType(); ElementhrtsManager.LoadElementHrtsBase(); ElementhrtsManager.LoadElementHrtsLevelInfo(); ElementhrtsManager.LoadSpecialElementHrtsExp(); // 加载庆功宴配置 GameManager.QingGongYanMgr.LoadQingGongYanConfig(); }