public static StandingsParser GetStandingsParser(LeagueType league) { switch (league) { case LeagueType.AHL: return(new AHLStandingsParser()); case LeagueType.VHL: return(new VHLStandingsParser()); case LeagueType.MHL: return(new MHLStandingsParser()); case LeagueType.WHL: return(new WHLStandingsParser()); case LeagueType.OHL: return(new OHLStandingsParser()); case LeagueType.QMJHL: return(new QMJHLStandingsParser()); case LeagueType.SHL: return(new SHLStandingsParser()); case LeagueType.Allsvenskan: return(new AllsvenskanStandingsParser()); default: throw new Exception("No Standing Parser for " + league.ToString()); } }
public LeagueSettings(LeagueType type, int matchCount, int roundDuration) { LeagueType = type.ToString(); MatchCount = matchCount; RoundDuration = roundDuration; }
public int RoundDuration; // time in seconds between rounds of play public LeagueSettings(LeagueType type) { LeagueType = type.ToString(); }