private void HandleChatMessage(NetIncomingMessage msg) { var channel = (ChatChannel)msg.ReadByte(); string text = msg.ReadString(); string message = "[" + channel + "] " + text; _lobbyChat.AddLine(message, ChatChannel.Lobby); }
private void AddChat(string text) { _lobbyChat.AddLine(text, ChatChannel.Lobby); }