mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Centralise and update WorkingBeatmap creation in test cases
This commit is contained in:
@ -18,7 +18,7 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
private readonly OsuGameBase game;
|
||||
|
||||
public DummyWorkingBeatmap(OsuGameBase game = null)
|
||||
public DummyWorkingBeatmap(OsuGameBase game)
|
||||
: base(new BeatmapInfo
|
||||
{
|
||||
Metadata = new BeatmapMetadata
|
||||
@ -34,7 +34,7 @@ namespace osu.Game.Beatmaps
|
||||
OverallDifficulty = 0,
|
||||
},
|
||||
Ruleset = new DummyRulesetInfo()
|
||||
})
|
||||
}, game.Audio)
|
||||
{
|
||||
this.game = game;
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
protected override Texture GetBackground() => game?.Textures.Get(@"Backgrounds/bg4");
|
||||
|
||||
protected override Track GetTrack() => game?.Audio.Tracks.GetVirtual(1000);
|
||||
protected override Track GetTrack() => game?.Audio?.Tracks.GetVirtual(1000);
|
||||
|
||||
private class DummyRulesetInfo : RulesetInfo
|
||||
{
|
||||
|
Reference in New Issue
Block a user