Move online metrics out of BeatmapSetInfo model

This commit is contained in:
Dean Herbert
2021-10-25 14:44:49 +09:00
parent 37ec4db017
commit 045dd94a6e
13 changed files with 86 additions and 73 deletions

View File

@ -38,9 +38,6 @@ namespace osu.Game.Beatmaps
[NotMapped]
public APIBeatmapSet OnlineInfo { get; set; }
[NotMapped]
public BeatmapSetMetrics Metrics { get; set; }
/// <summary>
/// The maximum star difficulty of all beatmaps in this set.
/// </summary>
@ -172,6 +169,10 @@ namespace osu.Game.Beatmaps
[JsonIgnore]
public int? TrackId => OnlineInfo?.TrackId;
[NotMapped]
[JsonIgnore]
public int[] Ratings => OnlineInfo?.Ratings;
#endregion
}
}