AddScore(): adds score to the user in current playing round, type is
user.AddScore(); // Increases the user's score in the current round by 1 var score = 5d; user.AddScore(score); // Increases the user's score in the current round by 5 var roundIndex = 2; user.AddScore(score, roundIndex); // Increases the user's score in a round with index 2 by 5
Score(): gets score of the user in
currentRoundor specified round using the round index.
var score = Users.Score(); // get user's score of current round var roundIndex = 0; var score0 = Users.Score(roundIndex); // get user's score of round 0
GetTotalScore() : get user's sum score of all played rounds.
var sumScore = Users.GetTotalScore(out int roundsCount)
UpdateClient(TcpClient client): updates
TcpClientof the user.
Room: room which user is in.
IsOnline: return true if client is online.
InRoom: return true if user is in room.