Move BPM out of OnlineInfo

This commit is contained in:
iiSaLMaN
2019-07-07 20:11:44 +03:00
parent 6ee10640e3
commit 3ea9629daf
10 changed files with 14 additions and 20 deletions

View File

@ -35,6 +35,11 @@ namespace osu.Game.Beatmaps
[NotMapped]
public BeatmapSetMetrics Metrics { get; set; }
/// <summary>
/// The beats per minute of this beatmap set's song.
/// </summary>
public double BPM { get; set; }
public double MaxStarDifficulty => Beatmaps?.Max(b => b.StarDifficulty) ?? 0;
public double MaxLength => Beatmaps?.Max(b => b.OnlineInfo.Length) ?? 0;