private void initCmdProcessor() { TCPCmdDispatcher.getInstance().registerProcessor(10140, JingJiGetDataCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10141, JingJiGetChallengeDataCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10142, JingJiCreateDataCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10143, JingJiRequestChallengeCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10144, JingJiChallengeEndCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10145, JingJiSaveDataCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10146, JingJiGetChallengeInfoDataCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10147, JingJiRemoveCDCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10148, JingJiGetRankingAndRewardTimeCmdProcessor.getInstance()); TCPCmdDispatcher.getInstance().registerProcessor(10149, JingJiUpdateNextRewardTimeCmdProcessor.getInstance()); }
/// <summary> /// 初始化指令 /// </summary> private void initCmdProcessor() { //获取竞技场数据 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_GET_DATA, JingJiGetDataCmdProcessor.getInstance()); //获取竞技场挑战数据 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_GET_CHALLENGE_DATA, JingJiGetChallengeDataCmdProcessor.getInstance()); //创建竞技场数据 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_CREATE_DATA, JingJiCreateDataCmdProcessor.getInstance()); //请求挑战 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_REQUEST_CHALLENGE, JingJiRequestChallengeCmdProcessor.getInstance()); //挑战结束 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_CHALLENGE_END, JingJiChallengeEndCmdProcessor.getInstance()); //保存数据 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_SAVE_DATA, JingJiSaveDataCmdProcessor.getInstance()); //获取竞技场战报数据 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_ZHANBAO_DATA, JingJiGetChallengeInfoDataCmdProcessor.getInstance()); //消除挑战CD TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_REMOVE_CD, JingJiRemoveCDCmdProcessor.getInstance()); //获取竞技场排名和上次领取奖励时间指令 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_GET_RANKING_AND_NEXTREWARDTIME, JingJiGetRankingAndRewardTimeCmdProcessor.getInstance()); //更新下次领取竞技场排行榜奖励时间 TCPCmdDispatcher.getInstance().registerProcessor((int)TCPGameServerCmds.CMD_DB_JINGJICHANG_UPDATE_NEXTREWARDTIME, JingJiUpdateNextRewardTimeCmdProcessor.getInstance()); }