void RecvSendMessage(IIPSocket conn, BitStream r) { var message = r.ReadGameMessage(GameMessageCollection.CurrentLanguage); if (string.IsNullOrEmpty(message)) { const string errmsg = "Received empty or null GameMessage."; if (log.IsErrorEnabled) log.Error(errmsg); return; } GameplayScreen.AppendToChatOutput(message, Color.Black); }
void RecvLoginUnsuccessful(IIPSocket conn, BitStream r) { var message = r.ReadGameMessage(GameMessageCollection.CurrentLanguage); if (ReceivedLoginUnsuccessful != null) ReceivedLoginUnsuccessful.Raise(this, new ClientPacketHandlerEventArgs<string>(conn, message)); }