Add missing backlink to BeatmapSet from Beatmap and fix non-explicit implementations

This commit is contained in:
Dean Herbert 2021-10-01 17:22:25 +09:00
parent 00e33a1da7
commit 9dae92e78c
2 changed files with 9 additions and 3 deletions

View File

@ -196,11 +196,12 @@ namespace osu.Game.Beatmaps
#region Implementation of IBeatmapInfo
public string DifficultyName => Version;
string IBeatmapInfo.DifficultyName => Version;
IBeatmapMetadataInfo IBeatmapInfo.Metadata => Metadata;
public IBeatmapDifficultyInfo Difficulty => BaseDifficulty;
IBeatmapDifficultyInfo IBeatmapInfo.Difficulty => BaseDifficulty;
IBeatmapSetInfo IBeatmapInfo.BeatmapSet => BeatmapSet;
IRulesetInfo IBeatmapInfo.Ruleset => Ruleset;
public double StarRating => StarDifficulty;
double IBeatmapInfo.StarRating => StarDifficulty;
#endregion
}

View File

@ -29,6 +29,11 @@ namespace osu.Game.Beatmaps
/// </summary>
IBeatmapDifficultyInfo Difficulty { get; }
/// <summary>
/// The beatmap set this beatmap is part of.
/// </summary>
IBeatmapSetInfo BeatmapSet { get; }
/// <summary>
/// The playable length in milliseconds of this beatmap.
/// </summary>