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