mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 06:47:25 +08:00
d6968ca09c
Always parse storyboards for now. Let's not optimise this until it is necessary. It was leading to weird threading problems due to the load call in Player's async load method.
25 lines
752 B
C#
25 lines
752 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// 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.Desktop.VisualTests.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;
|
|
protected override Track GetTrack() => null;
|
|
}
|
|
}
|