Esempio n. 1
0
        private void Process(ClientCommandChat msg)
        {
            RemotePlayer player;

            if (remotePlayers.TryGetValue(msg.id, out player))
            {
                playerChat.WriteMessage(player.username + ": " + msg.text);
            }
        }
Esempio n. 2
0
 public static void SendChat(string text)
 {
     if (Multiplayer.main.blocked == false)
     {
         var res = new ClientCommandChat();
         res.id   = Multiplayer.main.self.id;
         res.text = text;
         Multiplayer.main.Send(res);
     }
 }
Esempio n. 3
0
 private void Process(Client client, ClientCommandChat msg)
 {
     msg.id = client.id;
     SendToAll(client.peer, msg);
 }