mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Move public accessor properties to top of file
This commit is contained in:
parent
a5f77a86ef
commit
53c0a6708f
@ -32,6 +32,14 @@ namespace osu.Game.Beatmaps
|
|||||||
// TODO: remove once the fallback lookup is not required (and access via `working.BeatmapInfo.Metadata` directly).
|
// 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 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 AudioManager audioManager { get; }
|
||||||
|
|
||||||
private CancellationTokenSource loadCancellationSource = new CancellationTokenSource();
|
private CancellationTokenSource loadCancellationSource = new CancellationTokenSource();
|
||||||
@ -55,11 +63,6 @@ namespace osu.Game.Beatmaps
|
|||||||
skin = new Lazy<ISkin>(GetSkin);
|
skin = new Lazy<ISkin>(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
|
#region Resource getters
|
||||||
|
|
||||||
protected virtual Waveform GetWaveform() => new Waveform(null);
|
protected virtual Waveform GetWaveform() => new Waveform(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user