Add IApplicableToBeatmapProcessor mod interface

This commit is contained in:
ekrctb
2021-06-23 14:08:24 +09:00
parent a1da9c5ee3
commit e1b2c63e09
2 changed files with 21 additions and 0 deletions

View File

@ -133,6 +133,9 @@ namespace osu.Game.Beatmaps
IBeatmapProcessor processor = rulesetInstance.CreateBeatmapProcessor(converted);
foreach (var mod in mods.OfType<IApplicableToBeatmapProcessor>())
mod.ApplyToBeatmapProcessor(processor);
processor?.PreProcess();
// Compute default values for hitobjects, including creating nested hitobjects in-case they're needed