Ejemplo n.º 1
0
        /// <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();//礼包码
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 加载参数配置文件
        /// </summary>
        /// <returns></returns>
        private static int ReloadXmlFile_config_systemparams()
        {
            int ret = GameManager.systemParamsList.ReloadLoadParamsList();

            //解析插旗战的日期和时间
            JunQiManager.ParseWeekDaysTimes();

            if (GameManager.OPT_ChengZhanType == 0)
            {
                //解析皇城战的日期和时间
                HuangChengManager.ParseWeekDaysTimes();

                //解析王城战的日期和时间
                WangChengManager.ParseWeekDaysTimes();
            }

            //重新读取罗兰城战配置文件
            LuoLanChengZhanManager.getInstance().InitConfig();

            //重置皇城地图编号
            Global.ResetHuangChengMapCode();

            //重置皇宫的地图编号
            Global.ResetHuangGongMapCode();

            //坐骑的名称
            Global.HorseNamesList = null;

            //坐骑的速度
            Global.HorseSpeedList = null;

            //生肖竞猜配置
            GameManager.ShengXiaoGuessMgr.ReloadConfig();

            //古墓配置
            Global.InitGuMuMapCodes();
            Global.InitVipGumuExpMultiple();

            //充值限制掉落的时间项
            GameManager.GoodsPackMgr.ResetLimitTimeRange();

            //缓存的二锅头物品列表
            Global.ErGuoTouGoodsIDList = null;

            //绑定铜钱符每日使用次数列表缓存
            Global._VipUseBindTongQianGoodsIDNum = null;

            //自动给予的物品的
            GameManager.AutoGiveGoodsIDList = null;

            //加载采集配置
            CaiJiLogic.LoadConfig();

            // 加载魔剑士静态数据 [XSea 2015/4/14]
            GameManager.MagicSwordMgr.LoadMagicSwordData();

            // 加载梅林魔法书静态数据 [XSea 2015/6/19]
            GameManager.MerlinMagicBookMgr.LoadMerlinSystemParamsConfigData();

            // LogGoods
            Global.LoadItemLogMark();

            // logTradeGoods
            Global.LoadLogTradeGoods();

            //强化最大等级相关配置
            Global.LoadForgeSystemParams();

            // 副本惩罚时间
            KuaFuManager.getInstance().InitCopyTime();

            // 魂石精华的经验配置
            SoulStoneManager.Instance().LoadJingHuaExpConfig();

            // 加载需要记录日志的怪物
            MonsterAttackerLogManager.Instance().LoadRecordMonsters();

            // 玩家创建角色限制管理
            CreateRoleLimitManager.Instance().LoadConfig();

            SpeedUpTickCheck.Instance().LoadConfig();

            NameManager.Instance().LoadConfig();

            CoupleArenaManager.Instance().InitSystenParams();

            return(ret);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 重新加载程序配置参数文件
        /// </summary>
        /// <param name="xmlFileName"></param>
        /// <returns></returns>
        public static int ReloadXmlFile(string xmlFileName)
        {
            string lowerXmlFileName = xmlFileName.ToLower();

            if (Global.GetGiftExchangeFileName().ToLower() == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_activities());
            }
            else if ("config/gifts/biggift.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_biggift());
            }
            else if ("config/gifts/loginnumgift.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_loginnumgift());
            }
            else if ("config/gifts/huodongloginnumgift.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_huodongloginnumgift());
            }
            else if ("config/gifts/newrolegift.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_newrolegift());
            }
            else if ("config/gifts/uplevelgift.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_uplevelgift());
            }
            else if ("config/gifts/onlietimegift.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_onlietimegift());
            }
            else if ("config/platconfig.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_platconfig());
            }
            else if ("config/mall.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_mall());
            }
            else if ("config/monstergoodslist.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_monstergoodslist());
            }
            else if ("config/broadcastinfos.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_broadcastinfos());
            }
            else if ("config/specialtimes.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_specialtimes());
            }
            else if ("config/battle.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_battle());
            }
            else if ("config/arenabattle.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_ArenaBattle());
            }
            else if ("config/popupwin.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_popupwin());
            }
            else if ("config/npcscripts.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_npcscripts());
            }
            else if ("config/systemoperations.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_systemoperations());
            }
            else if ("config/systemparams.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_systemparams());
            }
            else if ("config/goodsmergeitems.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_goodsmergeitems());
            }
            else if ("config/qizhengegoods.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_qizhengegoods());
            }
            else if ("config/npcsalelist.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_npcsalelist());
            }
            else if ("config/goods.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_goods());
            }
            else if ("config/goodspack.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_goodspack());
            }
            else if ("config/systemtasks.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_systemtasks());
            }
            else if ("config/taskzhangjie.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_taskzhangjie());
            }
            else if ("config/equipupgrade.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_equipupgrade());
            }
            else if ("config/dig.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_dig());
            }
            else if ("config/battleexp.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_battleexp());
            }
            else if ("config/rebirth.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_rebirth());
            }
            else if ("config/battleaward.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_Award());
            }
            else if ("config/equipborn.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_EquipBorn());
            }
            else if ("config/bornname.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_BornName());
            }
            //***************新活动部分*************************
            else if ("config/gifts/fanli.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_FanLi());
            }
            else if ("config/gifts/chongzhisong.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_ChongZhiSong());
            }
            else if ("config/gifts/chongzhiking.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_ChongZhiKing());
            }
            else if ("config/gifts/levelking.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_LevelKing());
            }
            else if ("config/gifts/bossking.xml" == lowerXmlFileName)//原来的装备王 ==》修改成boss王
            {
                return(ReloadXmlFile_config_gifts_EquipKing());
            }
            else if ("config/gifts/wuxueking.xml" == lowerXmlFileName)//原来的经脉王 ==》修改成武学王
            {
                return(ReloadXmlFile_config_gifts_HorseKing());
            }
            else if ("config/gifts/jingmaiking.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_JingMaiKing());
            }
            else if ("config/gifts/vipdailyawards.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_gifts_VipDailyAwards());
            }
            else if ("config/activity/activitytip.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_ActivityTip());
            }
            else if ("config/luckyaward.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_LuckyAward());
            }
            else if ("config/lucky.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_Lucky());
            }
            else if ("config/chengjiu.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_ChengJiu());
            }
            else if ("config/chengjiubuff.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_ChengJiuBuff());
            }
            else if ("config/jingmai.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_JingMai());
            }
            else if ("config/wuxue.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_WuXue());
            }
            else if ("config/zuanhuang.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_ZuanHuang());
            }
            else if ("config/vip.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_Vip());
            }
            else if ("config/qianggou.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_QiangGou());
            }
            else if ("config/hefugifts/hefuqianggou.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_HeFuQiangGou());
            }
            else if ("config/jierigifts/jirriqianggou.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_JieRiQiangGou());
            }
            else if ("config/systemopen.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_SystemOpen());
            }
            else if ("config/DailyActiveInfor.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_DailyActive());
            }
            else if ("DailyActiveAward.xml" == lowerXmlFileName)
            {
                return(ReloadXmlFile_config_DailyActiveAward());
            }
            else if ("config/ipwhitelist.xml" == lowerXmlFileName)
            {
                CreateRoleLimitManager.Instance().LoadConfig();
                return(1);
            }
            else if ("kuafu" == lowerXmlFileName)
            {
                if (KuaFuManager.getInstance().InitConfig())
                {
                    return(1);
                }
            }
            else if ("langhunlingyu" == lowerXmlFileName)
            {
                if (LangHunLingYuManager.getInstance().InitConfig())
                {
                    return(1);
                }
            }
            else if ("config/chongzhi_app.xml" == lowerXmlFileName ||
                     "config/chongzhi_andrid.xml" == lowerXmlFileName || "config/chongzhi_android.xml" == lowerXmlFileName ||
                     "config/chongzhi_yueyu.xml" == lowerXmlFileName)
            {
                // 任何一项条件满足时,都会重新加载,但是重新加载时,会根据本平台,决定加载哪一项
                Global.InitFirstChargeConfigData();
            }
            else if ("config/AssInfo.xml" == lowerXmlFileName || "config/AssList.xml" == lowerXmlFileName || "config/AssConfig.xml" == lowerXmlFileName)
            {
                return(RobotTaskValidator.getInstance().LoadRobotTaskData()? 1 : 0);
            }
            return(-1000);
        }