public static PlayoffSeriesRule SetAwayFromRules(this PlayoffSeriesRule rule, string fromName, int fromValue) { rule.AwayFromName = fromName; rule.AwayFromValue = fromValue; return(rule); }
public static PlayoffSeriesRule SetWinnerData(this PlayoffSeriesRule rule, string winnerGroup, string winnerRankFrom) { rule.WinnerGroupName = winnerGroup; rule.WinnerRankFrom = winnerRankFrom; return(rule); }
public static PlayoffSeriesRule SetLoserData(this PlayoffSeriesRule rule, string loserGroup, string loserRankFrom) { rule.LoserGroupName = loserGroup; rule.LoserRankFrom = loserRankFrom; return(rule); }
public virtual PlayoffSeries SetupSeriesFromRule(Playoff playoff, PlayoffSeriesRule rule) { var homeTeam = GetTeamByRule(playoff, rule.HomeFromName, rule.HomeFromValue); var awayTeam = GetTeamByRule(playoff, rule.AwayFromName, rule.AwayFromValue); var series = SetupSeries(playoff, rule.SeriesType, rule.Name, rule.Round, -1, homeTeam, awayTeam, rule.SeriesNumber, rule.HomeGameProgression); return(series); }
public static PlayoffSeriesRule SetGameProgression(this PlayoffSeriesRule rule, int[] progression) { rule.HomeGameProgression = progression; return(rule); }