2019-01-24 16:43:03 +08: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-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Audio.Track;
|
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
public class TestWorkingBeatmap : WorkingBeatmap
|
|
|
|
|
{
|
|
|
|
|
public TestWorkingBeatmap(RulesetInfo ruleset)
|
|
|
|
|
: this(new TestBeatmap(ruleset))
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-19 19:44:38 +08:00
|
|
|
|
public TestWorkingBeatmap(IBeatmap beatmap)
|
2018-04-13 17:19:50 +08:00
|
|
|
|
: base(beatmap.BeatmapInfo)
|
|
|
|
|
{
|
|
|
|
|
this.beatmap = beatmap;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-19 19:44:38 +08:00
|
|
|
|
private readonly IBeatmap beatmap;
|
|
|
|
|
protected override IBeatmap GetBeatmap() => beatmap;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
protected override Texture GetBackground() => null;
|
2018-06-28 10:45:48 +08:00
|
|
|
|
protected override Track GetTrack() => null;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|