mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Add map pool beatmaps to groupings
This commit is contained in:
parent
0c4ea4beb1
commit
63fbe4e946
@ -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));
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user