Exemple #1
0
 public void ProcessIncomingMessage(string text, byte clientId)
 {
     ChatHelper.BroadcastChatMessageAs(clientId, NetworkText.FromLiteral(text), Main.player[clientId].ChatColor());
     Console.WriteLine("<{0}> {1}", Main.player[clientId].name, text);
 }
Exemple #2
0
 public void ProcessIncomingMessage(string text, byte clientId)
 {
     ChatHelper.BroadcastChatMessageAs(clientId, NetworkText.FromLiteral(text), Main.player[(int)clientId].ChatColor(), -1);
 }