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
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
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;
|
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
|
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
|
public class TestSceneMatchHeader : MultiplayerTestScene
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
|
{
|
|
|
|
|
typeof(Header)
|
|
|
|
|
};
|
|
|
|
|
|
2019-05-14 19:37:25 +00:00
|
|
|
|
public TestSceneMatchHeader()
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
2019-02-05 10:00:01 +00:00
|
|
|
|
Room.Playlist.Add(new PlaylistItem
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
2020-02-13 09:12:47 +00:00
|
|
|
|
Beatmap =
|
2018-12-20 06:17:33 +00:00
|
|
|
|
{
|
2020-02-13 09:12:47 +00:00
|
|
|
|
Value = new BeatmapInfo
|
2018-12-22 05:12:27 +00:00
|
|
|
|
{
|
2020-02-13 09:12:47 +00:00
|
|
|
|
Metadata = new BeatmapMetadata
|
|
|
|
|
{
|
|
|
|
|
Title = "Title",
|
|
|
|
|
Artist = "Artist",
|
|
|
|
|
AuthorString = "Author",
|
|
|
|
|
},
|
|
|
|
|
Version = "Version",
|
|
|
|
|
Ruleset = new OsuRuleset().RulesetInfo
|
|
|
|
|
}
|
2018-12-20 06:17:33 +00:00
|
|
|
|
},
|
2018-12-22 05:12:27 +00:00
|
|
|
|
RequiredMods =
|
|
|
|
|
{
|
|
|
|
|
new OsuModDoubleTime(),
|
|
|
|
|
new OsuModNoFail(),
|
|
|
|
|
new OsuModRelax(),
|
|
|
|
|
}
|
|
|
|
|
});
|
2018-12-20 06:17:33 +00:00
|
|
|
|
|
2020-02-14 11:07:52 +00:00
|
|
|
|
Room.Name.Value = "A very awesome room";
|
|
|
|
|
Room.Host.Value = new User { Id = 2, Username = "peppy" };
|
2018-12-20 06:17:33 +00:00
|
|
|
|
|
2019-02-05 10:00:01 +00:00
|
|
|
|
Child = new Header();
|
2018-12-20 06:17:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|