mirror of
https://github.com/ppy/osu.git
synced 2024-11-17 10:55:45 +08:00
48 lines
1.4 KiB
C#
48 lines
1.4 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 osu.Game.Beatmaps;
|
|
using osu.Game.Online.Multiplayer;
|
|
using osu.Game.Rulesets.Osu;
|
|
using osu.Game.Rulesets.Osu.Mods;
|
|
using osu.Game.Screens.Multi.Match.Components;
|
|
using osu.Game.Users;
|
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
|
{
|
|
public class TestSceneMatchHeader : MultiplayerTestScene
|
|
{
|
|
public TestSceneMatchHeader()
|
|
{
|
|
Room.Playlist.Add(new PlaylistItem
|
|
{
|
|
Beatmap =
|
|
{
|
|
Value = new BeatmapInfo
|
|
{
|
|
Metadata = new BeatmapMetadata
|
|
{
|
|
Title = "Title",
|
|
Artist = "Artist",
|
|
AuthorString = "Author",
|
|
},
|
|
Version = "Version",
|
|
Ruleset = new OsuRuleset().RulesetInfo
|
|
}
|
|
},
|
|
RequiredMods =
|
|
{
|
|
new OsuModDoubleTime(),
|
|
new OsuModNoFail(),
|
|
new OsuModRelax(),
|
|
}
|
|
});
|
|
|
|
Room.Name.Value = "A very awesome room";
|
|
Room.Host.Value = new User { Id = 2, Username = "peppy" };
|
|
|
|
Child = new Header();
|
|
}
|
|
}
|
|
}
|