예제 #1
0
        public static void DoDestroyBangHui(DBManager dbMgr, int bhid)
        {
            lock (Global.BangHuiMutex)
            {
                DBWriter.DeleteBangHui(dbMgr, bhid);
                GameDBManager.BangHuiJunQiMgr.RemoveBangHuiJunQi(bhid);
                DBWriter.ClearAllRoleBangHuiInfo(dbMgr, bhid);
                List <DBRoleInfo> dbRoleInfoList = dbMgr.DBRoleMgr.GetCachingDBRoleInfoListByFaction(bhid);
                if (null != dbRoleInfoList)
                {
                    for (int i = 0; i < dbRoleInfoList.Count; i++)
                    {
                        dbRoleInfoList[i].Faction = 0;
                        dbRoleInfoList[i].BHName  = "";
                        dbRoleInfoList[i].BHZhiWu = 0;
                    }
                }
            }
            DBWriter.ClearBHLingDiByID(dbMgr, bhid);
            GameDBManager.BangHuiLingDiMgr.ClearBangHuiLingDi(bhid);
            ZhanMengShiJianManager.getInstance().onZhanMengJieSan(bhid);
            string gmCmdData = string.Format("-synclingdi", new object[0]);

            ChatMsgManager.AddGMCmdChatMsg(-1, gmCmdData);
        }
예제 #2
0
        public static void initialize()
        {
            ZhanMengShiJianManager.getInstance().initialize();
            JingJiChangManager.getInstance().initialize();
            WanMoTaManager.getInstance().initialize();
            WingPaiHangManager.getInstance().initialize();
            RingPaiHangManager.getInstance().initialize();
            MerlinRankManager.getInstance().initialize();
            CmdRegisterTriggerManager.getInstance().initialize();
            TianTiDbCmdProcessor.getInstance().registerProcessor();
            SingletonTemplate <SevenDayActivityManager> .Instance().initialize();

            SingletonTemplate <FundManager> .Instance().initialize();

            SingletonTemplate <UserReturnManager> .Instance().initialize();

            SingletonTemplate <OlympicsManager> .Instance().initialize();

            SingletonTemplate <ShenJiManager> .Instance().initialize();

            SingletonTemplate <TradeBlackManager> .Instance().initialize();

            SingletonTemplate <KingRoleDataManager> .Instance().initialize();

            SingletonTemplate <AlchemyManager> .Instance().initialize();

            SingletonTemplate <ZhengBaManager> .Instance().initialize();

            SingletonTemplate <CoupleArenaDbManager> .Instance().initialize();

            SingletonTemplate <AllyManager> .Instance().initialize();

            SingletonTemplate <AoYunDaTiManager> .Instance().initialize();

            SingletonTemplate <YaoSaiBossManager> .Instance().initialize();

            SingletonTemplate <RoleManager> .Instance().initialize();

            SingletonTemplate <YaoSaiMissionManager> .Instance().initialize();

            SingletonTemplate <HongBaoManager> .Instance().initialize();

            SingletonTemplate <HuiJiManager> .Instance().initialize();

            SingletonTemplate <ShenShiManager> .Instance().initialize();

            SingletonTemplate <JueXingManager> .Instance().initialize();

            SingletonTemplate <ZuoQiManager> .Instance().initialize();

            SingletonTemplate <ArmorManager> .Instance().initialize();

            SingletonTemplate <JingLingYuanSuJueXingManager> .Instance().initialize();

            SingletonTemplate <BianShenManager> .Instance().initialize();

            AssemblyPatchManager.getInstance().initialize();
            GlodAuctionMsgProcess.getInstance().initialize();
            BoCaiManager.getInstance().initialize();
        }
예제 #3
0
        public static void destroy()
        {
            //战盟事件管理器
            ZhanMengShiJianManager.getInstance().destroy();

            // 竞技场管理器
            JingJiChangManager.getInstance().destroy();

            // 万魔塔管理
            WanMoTaManager.getInstance().destroy();

            // 翅膀排行管理
            WingPaiHangManager.getInstance().destroy();

            //指令管理器
            CmdRegisterTriggerManager.getInstance().destroy();
        }
예제 #4
0
        public static void destroy()
        {
            ZhanMengShiJianManager.getInstance().destroy();
            JingJiChangManager.getInstance().destroy();
            WanMoTaManager.getInstance().destroy();
            WingPaiHangManager.getInstance().destroy();
            MerlinRankManager.getInstance().destroy();
            CmdRegisterTriggerManager.getInstance().destroy();
            SingletonTemplate <SevenDayActivityManager> .Instance().destroy();

            SingletonTemplate <FundManager> .Instance().destroy();

            SingletonTemplate <UserReturnManager> .Instance().destroy();

            SingletonTemplate <OlympicsManager> .Instance().destroy();

            SingletonTemplate <ShenJiManager> .Instance().destroy();

            SingletonTemplate <TradeBlackManager> .Instance().showdown();

            SingletonTemplate <AlchemyManager> .Instance().showdown();

            SingletonTemplate <KingRoleDataManager> .Instance().destroy();

            SingletonTemplate <ZhengBaManager> .Instance().destroy();

            SingletonTemplate <CoupleArenaDbManager> .Instance().destroy();

            SingletonTemplate <AllyManager> .Instance().destroy();

            SingletonTemplate <RoleManager> .Instance().destroy();

            SingletonTemplate <HongBaoManager> .Instance().destroy();

            SingletonTemplate <HuiJiManager> .Instance().destroy();

            SingletonTemplate <ArmorManager> .Instance().destroy();

            SingletonTemplate <JingLingYuanSuJueXingManager> .Instance().destroy();

            SingletonTemplate <BianShenManager> .Instance().destroy();

            GlodAuctionMsgProcess.getInstance().destroy();
            BoCaiManager.getInstance().destroy();
        }
예제 #5
0
        /// <summary>
        /// 执行删除帮会的操作
        /// </summary>
        /// <param name="dbMgr"></param>
        public static void DoDestroyBangHui(DBManager dbMgr, int bhid)
        {
            lock (Global.BangHuiMutex)
            {
                //删除帮会信息
                //根据帮会ID删除帮会
                DBWriter.DeleteBangHui(dbMgr, bhid);

                //删除内存字典中的军旗
                GameDBManager.BangHuiJunQiMgr.RemoveBangHuiJunQi(bhid);

                //清空所有指定帮会用户的帮会信息
                DBWriter.ClearAllRoleBangHuiInfo(dbMgr, bhid);

                List <DBRoleInfo> dbRoleInfoList = dbMgr.DBRoleMgr.GetCachingDBRoleInfoListByFaction(bhid);
                if (null != dbRoleInfoList)
                {
                    for (int i = 0; i < dbRoleInfoList.Count; i++)
                    {
                        dbRoleInfoList[i].Faction = 0;
                        dbRoleInfoList[i].BHName  = "";
                        dbRoleInfoList[i].BHZhiWu = 0;
                        //dbRoleInfoList[i].BGDayID1 = 0;
                        //dbRoleInfoList[i].BGMoney = 0;
                        //dbRoleInfoList[i].BGDayID2 = 0;
                        //dbRoleInfoList[i].BGGoods = 0;
                        dbRoleInfoList[i].BangGong = 0;
                    }
                }
            }

            //清空某个帮会占领的领地列表
            DBWriter.ClearBHLingDiByID(dbMgr, bhid);

            //清空指定帮会的领地
            GameDBManager.BangHuiLingDiMgr.ClearBangHuiLingDi(bhid);

            //清空战盟事件
            ZhanMengShiJianManager.getInstance().onZhanMengJieSan(bhid);
        }