Beispiel #1
0
        void HandleDebugMessage(NetIncomingMessage message)
        {
            switch (message.MessageType)
            {
            case NetIncomingMessageType.DebugMessage:
            {
                NetLog.Debug(message.ReadString());
                break;
            }

            case NetIncomingMessageType.ErrorMessage:
            {
                NetLog.Error(message.ReadString());
                break;
            }

            case NetIncomingMessageType.WarningMessage:
            {
                NetLog.Warn(message.ReadString());
                break;
            }

            case NetIncomingMessageType.VerboseDebugMessage:
            {
                NetLog.Debug(message.ReadString());
                break;
            }
            }
        }