1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Move caching of IBeatmap to base DrawableRuleset

This commit is contained in:
Dean Herbert 2021-05-01 21:32:45 +09:00
parent db815f7930
commit a551958eeb
2 changed files with 1 additions and 4 deletions

View File

@ -45,9 +45,6 @@ namespace osu.Game.Rulesets.Mania.UI
public new ManiaBeatmap Beatmap => (ManiaBeatmap)base.Beatmap;
[Cached(typeof(IBeatmap))]
private ManiaBeatmap cachedBeatmap { get; set; }
public IEnumerable<BarLine> BarLines;
protected override bool RelativeScaleBeatLengths => true;
@ -80,7 +77,6 @@ namespace osu.Game.Rulesets.Mania.UI
: base(ruleset, beatmap, mods)
{
BarLines = new BarLineGenerator<BarLine>(Beatmap).BarLines;
cachedBeatmap = Beatmap;
}
[BackgroundDependencyLoader]

View File

@ -85,6 +85,7 @@ namespace osu.Game.Rulesets.UI
/// <summary>
/// The beatmap.
/// </summary>
[Cached(typeof(IBeatmap))]
public readonly Beatmap<TObject> Beatmap;
public override IEnumerable<HitObject> Objects => Beatmap.HitObjects;