Example #1
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();
        }
Example #2
0
 public static void OnChangeName(int roleid, string oldName, string newName)
 {
     if (!string.IsNullOrEmpty(oldName) && !string.IsNullOrEmpty(newName))
     {
         Action <List <PaiHangItemData> > _nameUpdater = delegate(List <PaiHangItemData> _itemList)
         {
             if (_itemList != null)
             {
                 try
                 {
                     List <PaiHangItemData> items = _itemList.FindAll((PaiHangItemData _item) => _item.RoleID == roleid);
                     if (items != null)
                     {
                         foreach (PaiHangItemData item in items)
                         {
                             item.RoleName = newName;
                         }
                     }
                 }
                 catch (Exception)
                 {
                 }
             }
         };
         _nameUpdater(PaiHangManager.RoleEquipPaiHangList);
         _nameUpdater(PaiHangManager.RoleXueWeiNumPaiHangList);
         _nameUpdater(PaiHangManager.RoleSkillLevelPaiHangList);
         _nameUpdater(PaiHangManager.RoleHorseJiFenPaiHangList);
         _nameUpdater(PaiHangManager.RoleLevelPaiHangList);
         _nameUpdater(PaiHangManager.RoleYinLiangPaiHangList);
         _nameUpdater(PaiHangManager.RoleLianZhanPaiHangList);
         _nameUpdater(PaiHangManager.RoleKillBossPaiHangList);
         _nameUpdater(PaiHangManager.RoleBattleNumPaiHangList);
         _nameUpdater(PaiHangManager.RoleHeroIndexPaiHangList);
         _nameUpdater(PaiHangManager.RoleGoldPaiHangList);
         _nameUpdater(PaiHangManager.CombatForcePaiHangList);
         _nameUpdater(PaiHangManager.RoleChengJiuPaiHangList);
         _nameUpdater(PaiHangManager.RoleShengWangPaiHangList);
         PaiHangManager._UpdateName_t_huodongpaihang(roleid, oldName, newName);
         JingJiChangManager.getInstance().OnChangeName(roleid, oldName, newName);
         WanMoTaManager.getInstance().OnChangeName(roleid, oldName, newName);
         WingPaiHangManager.getInstance().OnChangeName(roleid, oldName, newName);
         RingPaiHangManager.getInstance().OnChangeName(roleid, oldName, newName);
         MerlinRankManager.getInstance().OnChangeName(roleid, oldName, newName);
     }
 }
Example #3
0
        public static PaiHangData GetPaiHangData(int paiHangType, int pageShowNum = -1)
        {
            List <PaiHangItemData> paiHangItemList = null;

            switch (paiHangType)
            {
            case 1:
                paiHangItemList = PaiHangManager.RoleEquipPaiHangList;
                break;

            case 2:
                paiHangItemList = PaiHangManager.RoleXueWeiNumPaiHangList;
                break;

            case 3:
                paiHangItemList = PaiHangManager.RoleSkillLevelPaiHangList;
                break;

            case 4:
                paiHangItemList = PaiHangManager.RoleHorseJiFenPaiHangList;
                break;

            case 5:
                paiHangItemList = PaiHangManager.RoleLevelPaiHangList;
                break;

            case 6:
                paiHangItemList = PaiHangManager.RoleYinLiangPaiHangList;
                break;

            case 7:
                paiHangItemList = PaiHangManager.RoleLianZhanPaiHangList;
                break;

            case 8:
                paiHangItemList = PaiHangManager.RoleKillBossPaiHangList;
                break;

            case 9:
                paiHangItemList = PaiHangManager.RoleBattleNumPaiHangList;
                break;

            case 10:
                paiHangItemList = PaiHangManager.RoleHeroIndexPaiHangList;
                break;

            case 11:
                paiHangItemList = PaiHangManager.RoleGoldPaiHangList;
                break;

            case 12:
                paiHangItemList = PaiHangManager.CombatForcePaiHangList;
                break;

            case 13:
                paiHangItemList = JingJiChangManager.getInstance().getRankingList(0);
                break;

            case 14:
                paiHangItemList = WanMoTaManager.getInstance().getRankingList(0);
                break;

            case 15:
                paiHangItemList = WingPaiHangManager.getInstance().getRankingList(0, pageShowNum);
                break;

            case 16:
                paiHangItemList = RingPaiHangManager.getInstance().getRankingList(0, pageShowNum);
                break;

            case 17:
                paiHangItemList = MerlinRankManager.getInstance().getRankingList(0, pageShowNum);
                break;

            case 18:
                paiHangItemList = PaiHangManager.UserMoneyPaiHangList;
                break;

            case 19:
                paiHangItemList = PaiHangManager.RoleChengJiuPaiHangList;
                break;

            case 20:
                paiHangItemList = PaiHangManager.RoleShengWangPaiHangList;
                break;

            case 21:
                paiHangItemList = PaiHangManager.RoleGuardStatuePaiHangList;
                break;

            case 22:
                paiHangItemList = PaiHangManager.RoleHolyItemPaiHangList;
                break;
            }
            return(new PaiHangData
            {
                PaiHangType = paiHangType,
                PaiHangList = paiHangItemList
            });
        }