Merge pull request #13523 from ekrctb/applicable-to-dho

Reduce boilerplate of `IApplicableToDrawableHitObjects` by taking a single DHO instead of an enumerable
This commit is contained in:
Dan Balasescu
2021-06-17 19:59:06 +09:00
committed by GitHub
13 changed files with 74 additions and 86 deletions

View File

@ -92,8 +92,8 @@ namespace osu.Game.Rulesets.Osu.Tests
var drawable = CreateDrawableHitCircle(circle, auto, hitOffset);
foreach (var mod in SelectedMods.Value.OfType<IApplicableToDrawableHitObjects>())
mod.ApplyToDrawableHitObjects(new[] { drawable });
foreach (var mod in SelectedMods.Value.OfType<IApplicableToDrawableHitObject>())
mod.ApplyToDrawableHitObject(drawable);
return drawable;
}