Add conditional match support

This commit is contained in:
Dean Herbert
2018-12-01 15:32:11 +09:00
parent 03e416cda9
commit 61ca79a8b2
5 changed files with 65 additions and 9 deletions

View File

@ -78,6 +78,13 @@ namespace osu.Game.Tournament
{
pairing.Team1.Value = Ladder.Teams.FirstOrDefault(t => t.Acronym == pairing.Team1Acronym);
pairing.Team2.Value = Ladder.Teams.FirstOrDefault(t => t.Acronym == pairing.Team2Acronym);
foreach (var conditional in pairing.ConditionalPairings)
{
conditional.Team1.Value = Ladder.Teams.FirstOrDefault(t => t.Acronym == conditional.Team1Acronym);
conditional.Team2.Value = Ladder.Teams.FirstOrDefault(t => t.Acronym == conditional.Team2Acronym);
conditional.Grouping.Value = pairing.Grouping.Value;
}
}
// assign progressions