From 53c0a6708f8847e915cab748449cc55c792ea51e Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 22 Dec 2021 18:25:09 +0900 Subject: [PATCH] Move public accessor properties to top of file --- osu.Game/Beatmaps/WorkingBeatmap.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/osu.Game/Beatmaps/WorkingBeatmap.cs b/osu.Game/Beatmaps/WorkingBeatmap.cs index e5e552eaab..451b4ccac8 100644 --- a/osu.Game/Beatmaps/WorkingBeatmap.cs +++ b/osu.Game/Beatmaps/WorkingBeatmap.cs @@ -32,6 +32,14 @@ namespace osu.Game.Beatmaps // TODO: remove once the fallback lookup is not required (and access via `working.BeatmapInfo.Metadata` directly). public BeatmapMetadata Metadata => BeatmapInfo.Metadata ?? BeatmapSetInfo?.Metadata ?? new BeatmapMetadata(); + public Waveform Waveform => waveform.Value; + + public Storyboard Storyboard => storyboard.Value; + + public Texture Background => GetBackground(); // Texture uses ref counting, so we want to return a new instance every usage. + + public ISkin Skin => skin.Value; + private AudioManager audioManager { get; } private CancellationTokenSource loadCancellationSource = new CancellationTokenSource(); @@ -55,11 +63,6 @@ namespace osu.Game.Beatmaps skin = new Lazy(GetSkin); } - public Waveform Waveform => waveform.Value; - public Storyboard Storyboard => storyboard.Value; - public Texture Background => GetBackground(); // Texture uses ref counting, so we want to return a new instance every usage. - public ISkin Skin => skin.Value; - #region Resource getters protected virtual Waveform GetWaveform() => new Waveform(null);