1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-09 00:07:32 +08:00
osu-lazer/osu.Game/Tests/Beatmaps/TestWorkingBeatmap.cs

34 lines
1013 B
C#
Raw Normal View History

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