mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove replay logic from DrawableRuleset
(and implement in DrawableEditorRulesetWrapper
)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user