public void InitializeTournamentData(string _id) { if (!TournamentStatistics.ContainsKey(_id)) { TournamentStatistics.Add(_id, new TeamStatistics()); } }
void UpdateTournamentStatistics(TeamStatistics _stats, string _tournamentId) { if (TournamentStatistics == null) { Attributes.TournamentStatistics = new TeamTournamentStats(); } if (!TournamentStatistics.ContainsKey(_tournamentId)) { TournamentStatistics.Add(_tournamentId, new TeamStatistics()); } TeamStatistics tStats = GetTournamentStatistics(_tournamentId); UpdateStats(tStats, _stats); }