/// <summary> /// Make a copy of the current state of the scoreboard. /// </summary> /// <param name="scoresCopy"></param> public static void Snapshot(Dictionary <int, Scoreboard.Score> scoresCopy) { ScoreMap.Enumerator it = scores.GetEnumerator(); while (it.MoveNext()) { if (!scoresCopy.ContainsKey(it.Current.Key)) { scoresCopy.Add(it.Current.Key, new Score()); } scoresCopy[it.Current.Key].Curr = it.Current.Value.Curr; scoresCopy[it.Current.Key].Prev = it.Current.Value.Prev; } }
private static void RenderScores() { // Render the score registers in the order they appear in the CardSpace.xml file. ScoreMap.Enumerator it = scores.GetEnumerator(); while (it.MoveNext()) { Score score = it.Current.Value; if (score.Active && score.Visibility != ScoreVisibility.Off && IsColorBucket((ScoreBucket)it.Current.Key)) { RenderScore(score, (Classification.Colors)it.Current.Key); } } }