Remove replay logic from DrawableRuleset (and implement in DrawableEditorRulesetWrapper)

This commit is contained in:
Dean Herbert
2021-06-02 11:06:30 +09:00
parent f14c0eae99
commit 8a76d97b63
2 changed files with 12 additions and 14 deletions

View File

@ -182,18 +182,11 @@ namespace osu.Game.Rulesets.UI
.WithChild(ResumeOverlay)));
}
RegenerateAutoplay();
applyRulesetMods(Mods, config);
loadObjects(cancellationToken ?? default);
}
public void RegenerateAutoplay()
{
// for now this is applying mods which aren't just autoplay.
// we'll need to reconsider this flow in the future.
applyRulesetMods(Mods, config);
}
/// <summary>
/// Creates and adds drawable representations of hit objects to the play field.
/// </summary>
@ -349,9 +342,6 @@ namespace osu.Game.Rulesets.UI
foreach (var mod in mods.OfType<IApplicableToDrawableRuleset<TObject>>())
mod.ApplyToDrawableRuleset(this);
foreach (var mod in mods.OfType<ICreateReplay>())
SetReplayScore(mod.CreateReplayScore(Beatmap, mods));
foreach (var mod in mods.OfType<IReadFromConfig>())
mod.ReadFromConfig(config);
}