Пример #1
0
        void HandleDebugMessage(NetIncomingMessage message)
        {
            switch (message.MessageType)
            {
            case NetIncomingMessageType.DebugMessage:
            {
                NetLog.DebugFormat("{0} {1}", appIdentifier, message.ReadString());
                break;
            }

            case NetIncomingMessageType.ErrorMessage:
            {
                NetLog.ErrorFormat("{0}, {1}", appIdentifier, message.ReadString());
                break;
            }

            case NetIncomingMessageType.WarningMessage:
            {
                NetLog.WarnFormat("{0}, {1}", appIdentifier, message.ReadString());
                break;
            }

            case NetIncomingMessageType.VerboseDebugMessage:
            {
                NetLog.DebugFormat("{0}, {1}", appIdentifier, message.ReadString());
                break;
            }
            }
        }