2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-09-18 21:32:49 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Audio.Track;
|
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
public class TestWorkingBeatmap : WorkingBeatmap
|
|
|
|
|
{
|
|
|
|
|
public TestWorkingBeatmap(Beatmap beatmap)
|
|
|
|
|
: base(beatmap.BeatmapInfo)
|
|
|
|
|
{
|
|
|
|
|
this.beatmap = beatmap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private readonly Beatmap beatmap;
|
|
|
|
|
|
|
|
|
|
protected override Beatmap GetBeatmap() => beatmap;
|
|
|
|
|
protected override Texture GetBackground() => null;
|
2017-12-26 14:02:01 +08:00
|
|
|
|
protected override Track GetTrack() => new TrackVirtual();
|
2017-09-18 21:32:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|