mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 12:02:57 +08:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.Cursor;
|
|
using osu.Game.Tournament.Screens.Ladder;
|
|
|
|
namespace osu.Game.Tournament.Tests
|
|
{
|
|
public class TestCaseLadderManager : LadderTestCase
|
|
{
|
|
private LadderManager manager;
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
Add(new OsuContextMenuContainer
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Child = manager = new LadderManager()
|
|
});
|
|
}
|
|
|
|
protected override void Dispose(bool isDisposing)
|
|
{
|
|
base.Dispose(isDisposing);
|
|
|
|
var newInfo = manager.CreateInfo();
|
|
|
|
Ladder.Teams = newInfo.Teams;
|
|
Ladder.Groupings = newInfo.Groupings;
|
|
Ladder.Pairings = newInfo.Pairings;
|
|
Ladder.Progressions = newInfo.Progressions;
|
|
}
|
|
}
|
|
}
|