From a90cfb4a2f9b4cf839e3ad0daac1219c984b96e4 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 15 Nov 2021 19:30:46 +0900 Subject: [PATCH] Implement remaining properties via implicit implementation rather than interface methods --- osu.Game/Beatmaps/IWorkingBeatmap.cs | 4 ++-- osu.Game/Beatmaps/WorkingBeatmap.cs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game/Beatmaps/IWorkingBeatmap.cs b/osu.Game/Beatmaps/IWorkingBeatmap.cs index 22a922db59..ba887edf62 100644 --- a/osu.Game/Beatmaps/IWorkingBeatmap.cs +++ b/osu.Game/Beatmaps/IWorkingBeatmap.cs @@ -19,9 +19,9 @@ namespace osu.Game.Beatmaps { IBeatmapInfo BeatmapInfo { get; } - IBeatmapSetInfo BeatmapSetInfo => BeatmapInfo.BeatmapSet; + IBeatmapSetInfo BeatmapSetInfo { get; } - IBeatmapMetadataInfo Metadata => BeatmapInfo.Metadata; + IBeatmapMetadataInfo Metadata { get; } /// /// Whether the Beatmap has finished loading. diff --git a/osu.Game/Beatmaps/WorkingBeatmap.cs b/osu.Game/Beatmaps/WorkingBeatmap.cs index 51eea94d3a..bba836484f 100644 --- a/osu.Game/Beatmaps/WorkingBeatmap.cs +++ b/osu.Game/Beatmaps/WorkingBeatmap.cs @@ -231,6 +231,8 @@ namespace osu.Game.Beatmaps public virtual bool BeatmapLoaded => beatmapLoadTask?.IsCompleted ?? false; IBeatmapInfo IWorkingBeatmap.BeatmapInfo => BeatmapInfo; + IBeatmapMetadataInfo IWorkingBeatmap.Metadata => Metadata; + IBeatmapSetInfo IWorkingBeatmap.BeatmapSetInfo => BeatmapSetInfo; public IBeatmap Beatmap {