2019-01-24 08:43:03 +00:00
|
|
|
|
// 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.
|
2018-12-20 06:17:33 +00:00
|
|
|
|
|
2020-12-18 05:58:58 +00:00
|
|
|
|
using NUnit.Framework;
|
2018-12-20 06:17:33 +00:00
|
|
|
|
using osu.Game.Beatmaps;
|
2020-12-25 04:38:11 +00:00
|
|
|
|
using osu.Game.Online.Rooms;
|
2018-12-20 06:17:33 +00:00
|
|
|
|
using osu.Game.Rulesets.Osu;
|
|
|
|
|
using osu.Game.Rulesets.Osu.Mods;
|
2020-12-25 15:50:00 +00:00
|
|
|
|
using osu.Game.Screens.OnlinePlay.Match.Components;
|
2021-06-24 07:29:06 +00:00
|
|
|
|
using osu.Game.Tests.Visual.OnlinePlay;
|
2020-02-14 11:07:52 +00:00
|
|
|
|
using osu.Game.Users;
|
2018-12-20 06:17:33 +00:00
|
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
2021-06-25 04:02:19 +00:00
|
|
|
|
public class TestSceneMatchHeader : OnlinePlayTestScene
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
2020-12-18 05:58:58 +00:00
|
|
|
|
[SetUp]
|
2021-06-25 04:02:19 +00:00
|
|
|
|
public new void Setup() => Schedule(() =>
|
2021-06-23 15:28:39 +00:00
|
|
|
|
{
|
2021-06-29 06:39:01 +00:00
|
|
|
|
SelectedRoom.Value = new Room
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
2021-06-29 06:39:01 +00:00
|
|
|
|
Name = { Value = "A very awesome room" },
|
|
|
|
|
Host = { Value = new User { Id = 2, Username = "peppy" } },
|
|
|
|
|
Playlist =
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
2021-06-29 06:39:01 +00:00
|
|
|
|
new PlaylistItem
|
2018-12-22 05:12:27 +00:00
|
|
|
|
{
|
2021-06-29 06:39:01 +00:00
|
|
|
|
Beatmap =
|
2020-02-13 09:12:47 +00:00
|
|
|
|
{
|
2021-06-29 06:39:01 +00:00
|
|
|
|
Value = new BeatmapInfo
|
2021-06-23 15:28:39 +00:00
|
|
|
|
{
|
2021-06-29 06:39:01 +00:00
|
|
|
|
Metadata = new BeatmapMetadata
|
|
|
|
|
{
|
|
|
|
|
Title = "Title",
|
|
|
|
|
Artist = "Artist",
|
|
|
|
|
AuthorString = "Author",
|
|
|
|
|
},
|
|
|
|
|
Version = "Version",
|
|
|
|
|
Ruleset = new OsuRuleset().RulesetInfo
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
RequiredMods =
|
|
|
|
|
{
|
|
|
|
|
new OsuModDoubleTime(),
|
|
|
|
|
new OsuModNoFail(),
|
|
|
|
|
new OsuModRelax(),
|
2021-06-23 15:28:39 +00:00
|
|
|
|
}
|
2020-02-13 09:12:47 +00:00
|
|
|
|
}
|
2021-06-29 06:39:01 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
2018-12-20 06:17:33 +00:00
|
|
|
|
|
2021-06-29 06:39:01 +00:00
|
|
|
|
Child = new Header();
|
|
|
|
|
});
|
2018-12-20 06:17:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|