public override void OnGameData(MarryRoom room, GamePlayer player, GSPacketIn packet)
        {
            MarryCmdType code = (MarryCmdType)packet.ReadByte();

            try
            {
                IMarryCommandHandler marryCommandHandler = this._commandMgr.LoadCommandHandler((int)code);
                if (marryCommandHandler != null)
                {
                    marryCommandHandler.HandleCommand(this, player, packet);
                }
                else
                {
                    TankMarryLogicProcessor.log.Error(string.Format("IP: {0}", player.Client.TcpEndpoint));
                }
            }
            catch (Exception ex)
            {
                TankMarryLogicProcessor.log.Error(string.Format("IP:{1}, OnGameData is Error: {0}", ex.ToString(), player.Client.TcpEndpoint));
            }
        }
예제 #2
0
        public override void OnGameData(MarryRoom room, GamePlayer player, GSPacketIn packet)
        {
            MarryCmdType type = (MarryCmdType)packet.ReadByte();

            try
            {
                IMarryCommandHandler handleCommand = _commandMgr.LoadCommandHandler((int)type);
                if (handleCommand != null)
                {
                    handleCommand.HandleCommand(this, player, packet);
                }
                else
                {
                    log.Error(string.Format("IP: {0}", player.Client.TcpEndpoint));
                }
            }
            catch (Exception e)
            {
                log.Error(string.Format("IP:{1}, OnGameData is Error: {0}", e.ToString(), player.Client.TcpEndpoint));
            }
        }