mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 17:37:24 +08:00
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using NUnit.Framework;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Online.Rooms;
|
|
using osu.Game.Rulesets.Osu;
|
|
using osu.Game.Rulesets.Osu.Mods;
|
|
using osu.Game.Screens.OnlinePlay.Components;
|
|
using osu.Game.Tests.Beatmaps;
|
|
using osu.Game.Tests.Visual.OnlinePlay;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
|
{
|
|
public class TestSceneMatchBeatmapDetailArea : OnlinePlayTestScene
|
|
{
|
|
[SetUp]
|
|
public new void Setup() => Schedule(() =>
|
|
{
|
|
SelectedRoom.Value = new Room();
|
|
|
|
Child = new MatchBeatmapDetailArea
|
|
{
|
|
Anchor = Anchor.Centre,
|
|
Origin = Anchor.Centre,
|
|
Size = new Vector2(500),
|
|
CreateNewItem = createNewItem
|
|
};
|
|
});
|
|
|
|
private void createNewItem()
|
|
{
|
|
SelectedRoom.Value.Playlist.Add(new PlaylistItem
|
|
{
|
|
ID = SelectedRoom.Value.Playlist.Count,
|
|
Beatmap = { Value = new TestBeatmap(new OsuRuleset().RulesetInfo).BeatmapInfo },
|
|
Ruleset = { Value = new OsuRuleset().RulesetInfo },
|
|
RequiredMods =
|
|
{
|
|
new OsuModHardRock(),
|
|
new OsuModDoubleTime(),
|
|
new OsuModAutoplay()
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|