Esempio n. 1
0
        public static void startup()
        {
            //战盟事件管理器
            ZhanMengShiJianManager.getInstance().startup();

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

            //离线摆摊
            LiXianBaiTanManager.getInstance().startup();

            //离线挂机
            LiXianGuaJiManager.getInstance().startup();

            //副本活动组队管理器
            CopyTeamManager.getInstance().startup();

            //指令注册管理器
            CmdRegisterTriggerManager.getInstance().startup();

            //发送指令管理
            SendCmdManager.getInstance().startup();

            //Boss AI管理器
            BossAIManager.getInstance().startup();

            //MU交易所
            SaleManager.getInstance().startup();

            //炼制系统
            LianZhiManager.GetInstance().startup();

            // 成就升级
            ChengJiuManager.GetInstance().startup();
        }
        public bool processCmd(GameClient client, string[] cmdParams)
        {
            if (Cmd == TCPGameServerCmds.CMD_SPR_COPYTEAM)
            {
                int teamType  = Convert.ToInt32(cmdParams[1]);
                int extTag1   = Convert.ToInt32(cmdParams[2]);
                int extTag2   = Convert.ToInt32(cmdParams[3]);
                int autoEnter = Convert.ToInt32(cmdParams[4]);

                if (teamType == (int)TeamCmds.Create) //创建队伍
                {
                    CopyTeamManager.getInstance().CreateCopyTeam(client, extTag1, extTag2, autoEnter);
                }
                else if (teamType == (int)TeamCmds.Apply) //申请组队
                {
                    CopyTeamManager.getInstance().ApplyCopyTeam(client, extTag1);
                }
                else if (teamType == (int)TeamCmds.Remove) //踢出队伍
                {
                    CopyTeamManager.getInstance().RemoveFromCopyTeam(client, extTag1);
                }
                else if (teamType == (int)TeamCmds.Quit) //离开组队
                {
                    CopyTeamManager.getInstance().QuitFromTeam(client);
                }
                else if (teamType == (int)TeamCmds.Ready) //准备状态变化
                {
                    CopyTeamManager.getInstance().Ready(client, extTag1);
                }
                else if (teamType == (int)TeamCmds.QuickJoinTeam) //快速加入
                {
                    CopyTeamManager.getInstance().QuickJoinTeam(client, extTag1);
                }
            }
            else if (Cmd == TCPGameServerCmds.CMD_SPR_REGEVENTNOTIFY)
            {
                int sceneIndex = Convert.ToInt32(cmdParams[1]);
                int ready      = Convert.ToInt32(cmdParams[2]);

                if (ready > 0)
                {
                    CopyTeamManager.getInstance().RegisterCopyTeamListNotify(client, sceneIndex);
                }
                else
                {
                    CopyTeamManager.getInstance().UnRegisterCopyTeamListNotify(client);
                }
            }
            else if (Cmd == TCPGameServerCmds.CMD_SPR_LISTCOPYTEAMS)
            {
                int startIndex = Convert.ToInt32(cmdParams[1]);
                int sceneIndex = Convert.ToInt32(cmdParams[2]);

                //列举队伍并返回列表
                CopyTeamManager.getInstance().ListAllTeams(client, startIndex, sceneIndex);
            }

            return(true);
        }
Esempio n. 3
0
        public static void initialize()
        {
            //战盟事件管理器
            ZhanMengShiJianManager.getInstance().initialize();

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

            //离线摆摊
            LiXianBaiTanManager.getInstance().initialize();

            //离线挂机
            LiXianGuaJiManager.getInstance().initialize();

            //副本活动组队管理器
            CopyTeamManager.getInstance().initialize();

            //指令注册管理器
            CmdRegisterTriggerManager.getInstance().initialize();

            //发送指令管理
            SendCmdManager.getInstance().initialize();

            //Boss AI管理器
            BossAIManager.getInstance().initialize();

            //洗炼管理器
            WashPropsManager.initialize();

            //MU交易所
            SaleManager.getInstance().initialize();

            //炼制系统
            LianZhiManager.GetInstance().initialize();

            // 成就升级
            ChengJiuManager.GetInstance().initialize();

            //恶魔来袭
            EMoLaiXiCopySceneManager.LoadEMoLaiXiCopySceneInfo();
        }