コード例 #1
0
        public static PlayoffSeriesRule SetAwayFromRules(this PlayoffSeriesRule rule, string fromName, int fromValue)
        {
            rule.AwayFromName  = fromName;
            rule.AwayFromValue = fromValue;

            return(rule);
        }
コード例 #2
0
        public static PlayoffSeriesRule SetWinnerData(this PlayoffSeriesRule rule, string winnerGroup, string winnerRankFrom)
        {
            rule.WinnerGroupName = winnerGroup;
            rule.WinnerRankFrom  = winnerRankFrom;

            return(rule);
        }
コード例 #3
0
        public static PlayoffSeriesRule SetLoserData(this PlayoffSeriesRule rule, string loserGroup, string loserRankFrom)
        {
            rule.LoserGroupName = loserGroup;
            rule.LoserRankFrom  = loserRankFrom;

            return(rule);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        public static PlayoffSeriesRule SetGameProgression(this PlayoffSeriesRule rule, int[] progression)
        {
            rule.HomeGameProgression = progression;

            return(rule);
        }