Exemple #1
0
 public int CountAllQueuedCoins()
 {
     lock (StateLock)
     {
         return(WaitingList.Count + Rounds.Sum(x => x.CoinsRegistered.Count()));
     }
 }
Exemple #2
0
 /// <summary>
 ///     Get total penalties of the game (all rounds combined)
 /// </summary>
 /// <returns></returns>
 private int GetTotalPenalty()
 {
     return(Rounds.Sum(x => x.RoundPenalties.GetTotalPenalties()));
 }