1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Add map pool beatmaps to groupings

This commit is contained in:
Dean Herbert 2018-10-14 18:00:28 +09:00
parent 0c4ea4beb1
commit 63fbe4e946
3 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,6 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using osu.Game.Tournament.Screens.TeamIntro;
@ -10,7 +13,7 @@ namespace osu.Game.Tournament.Tests
var team1 = Ladder.Teams.First(t => t.Acronym == "USA");
var team2 = Ladder.Teams.First(t => t.Acronym == "JPN");
var round = Ladder.Groupings.First(g => g.Name == "Quarter Finals");
var round = Ladder.Groupings.First(g => g.Name == "Finals");
Add(new TeamIntroScreen(team1, team2, round));
}

View File

@ -0,0 +1,11 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Tournament.Screens.Ladder.Components
{
public class GroupingBeatmap
{
public int ID;
public string Mods;
}
}

View File

@ -14,6 +14,8 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
public readonly BindableInt BestOf = new BindableInt(9) { Default = 9, MinValue = 3, MaxValue = 23 };
public readonly List<GroupingBeatmap> Beatmaps = new List<GroupingBeatmap>();
public readonly Bindable<DateTimeOffset> StartDate = new Bindable<DateTimeOffset>();
public List<int> Pairings = new List<int>();