Expose Mods in DrawableRuleset to avoid using external DI

This commit is contained in:
Dean Herbert
2021-02-11 17:47:29 +09:00
parent aaa0362b12
commit f84ea30637
4 changed files with 5 additions and 9 deletions

View File

@ -92,7 +92,7 @@ namespace osu.Game.Rulesets.UI
protected IRulesetConfigManager Config { get; private set; }
[Cached(typeof(IReadOnlyList<Mod>))]
protected override IReadOnlyList<Mod> Mods { get; }
public sealed override IReadOnlyList<Mod> Mods { get; }
private FrameStabilityContainer frameStabilityContainer;
@ -434,7 +434,7 @@ namespace osu.Game.Rulesets.UI
/// <summary>
/// The mods which are to be applied.
/// </summary>
protected abstract IReadOnlyList<Mod> Mods { get; }
public abstract IReadOnlyList<Mod> Mods { get; }
/// <summary>~
/// The associated ruleset.