Exemple #1
0
 public void SendMessage(ChatMessage message)
 {
     message.sequenceId = messageId;
     messageId++;
     message.Timestamp = DateTime.Now;
     messages.Add (message);
 }
Exemple #2
0
 public void SendMessage(int playerId, ChatMessage message)
 {
     message.user = gb.games[playerId].Name;
     gb.SendMessage(message);
 }