1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Let LegacyBeatmapSkinColourTest inherit from TestPlayer instead

This commit is contained in:
Salman Ahmed 2021-05-05 09:21:09 +03:00
parent 51ff59242d
commit fda6d8685c

View File

@ -10,7 +10,6 @@ using osu.Framework.Bindables;
using osu.Framework.IO.Stores;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Screens.Play;
using osu.Game.Skinning;
using osu.Game.Tests.Visual;
using osuTK.Graphics;
@ -66,16 +65,12 @@ namespace osu.Game.Tests.Beatmaps
protected virtual ExposedPlayer CreateTestPlayer(bool userHasCustomColours) => new ExposedPlayer(userHasCustomColours);
protected class ExposedPlayer : Player
protected class ExposedPlayer : TestPlayer
{
protected readonly bool UserHasCustomColours;
public ExposedPlayer(bool userHasCustomColours)
: base(new PlayerConfiguration
{
AllowPause = false,
ShowResults = false,
})
: base(false, false)
{
UserHasCustomColours = userHasCustomColours;
}