mirror of
https://github.com/ppy/osu.git
synced 2024-11-17 18:22:54 +08:00
30 lines
866 B
C#
30 lines
866 B
C#
// 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.
|
|
|
|
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))
|
|
{
|
|
}
|
|
|
|
public TestWorkingBeatmap(IBeatmap beatmap)
|
|
: base(beatmap.BeatmapInfo)
|
|
{
|
|
this.beatmap = beatmap;
|
|
}
|
|
|
|
private readonly IBeatmap beatmap;
|
|
protected override IBeatmap GetBeatmap() => beatmap;
|
|
protected override Texture GetBackground() => null;
|
|
protected override Track GetTrack() => null;
|
|
}
|
|
}
|