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-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Audio.Track;
|
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
public class TestWorkingBeatmap : WorkingBeatmap
|
|
|
|
|
{
|
2019-02-19 03:16:44 +00:00
|
|
|
|
private readonly IBeatmap beatmap;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Create an instance which provides the <see cref="IBeatmap"/> when requested.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="beatmap">The beatmap</param>
|
2019-05-31 05:40:53 +00:00
|
|
|
|
public TestWorkingBeatmap(IBeatmap beatmap)
|
|
|
|
|
: base(beatmap.BeatmapInfo, null)
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
|
|
|
|
this.beatmap = beatmap;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-19 11:44:38 +00:00
|
|
|
|
protected override IBeatmap GetBeatmap() => beatmap;
|
2019-02-19 03:16:44 +00:00
|
|
|
|
|
2019-05-31 05:40:53 +00:00
|
|
|
|
protected override Texture GetBackground() => null;
|
2019-02-19 03:35:52 +00:00
|
|
|
|
|
2019-05-31 05:40:53 +00:00
|
|
|
|
protected override Track GetTrack() => null;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|