Give the dummy beatmap a background

This commit is contained in:
Dean Herbert
2017-07-18 17:59:43 +09:00
parent 007b343854
commit 3289d93f22
2 changed files with 10 additions and 3 deletions

View File

@ -11,7 +11,9 @@ namespace osu.Game.Beatmaps
{
internal class DummyWorkingBeatmap : WorkingBeatmap
{
public DummyWorkingBeatmap()
private readonly OsuGame game;
public DummyWorkingBeatmap(OsuGame game)
: base(new BeatmapInfo
{
Metadata = new BeatmapMetadata
@ -24,6 +26,7 @@ namespace osu.Game.Beatmaps
Difficulty = new BeatmapDifficulty(),
})
{
this.game = game;
}
protected override Beatmap GetBeatmap() => new Beatmap
@ -31,7 +34,7 @@ namespace osu.Game.Beatmaps
HitObjects = new List<HitObject>(),
};
protected override Texture GetBackground() => null;
protected override Texture GetBackground() => game.Textures.Get(@"Backgrounds/bg4");
protected override Track GetTrack() => new TrackVirtual();
}