Пример #1
0
        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);
        }
Пример #2
0
        void RecvLoginUnsuccessful(IIPSocket conn, BitStream r)
        {
            var message = r.ReadGameMessage(GameMessageCollection.CurrentLanguage);

            if (ReceivedLoginUnsuccessful != null)
                ReceivedLoginUnsuccessful.Raise(this, new ClientPacketHandlerEventArgs<string>(conn, message));
        }