Update DifficultyCalculator to take an IRulesetInfo

This commit is contained in:
Dean Herbert
2021-11-15 18:23:03 +09:00
parent 62d670a3ca
commit 369b4ba789
24 changed files with 26 additions and 26 deletions

View File

@ -26,10 +26,10 @@ namespace osu.Game.Rulesets.Difficulty
private Mod[] playableMods;
private double clockRate;
private readonly Ruleset ruleset;
private readonly IRulesetInfo ruleset;
private readonly IWorkingBeatmap beatmap;
protected DifficultyCalculator(Ruleset ruleset, IWorkingBeatmap beatmap)
protected DifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap)
{
this.ruleset = ruleset;
this.beatmap = beatmap;
@ -116,7 +116,7 @@ namespace osu.Game.Rulesets.Difficulty
{
playableMods = mods.Select(m => m.DeepClone()).ToArray();
Beatmap = beatmap.GetPlayableBeatmap(ruleset.RulesetInfo, playableMods);
Beatmap = beatmap.GetPlayableBeatmap(ruleset, playableMods);
var track = new TrackVirtual(10000);
playableMods.OfType<IApplicableToTrack>().ForEach(m => m.ApplyToTrack(track));