Take IWorkingBeatmap instead of WorkingBeatmap

This makes testing much easier, and allows for checking of any class deriving from that interface, including `WorkingBeatmap`.
This commit is contained in:
Naxess
2021-04-18 01:21:20 +02:00
parent abf512532e
commit 56bf49c85c
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Checks
new IssueTemplateOffscreenSlider(this)
};
public IEnumerable<Issue> Run(WorkingBeatmap workingBeatmap)
public IEnumerable<Issue> Run(IWorkingBeatmap workingBeatmap)
{
foreach (var hitobject in workingBeatmap.Beatmap.HitObjects)
{