mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Remove BeatmapMetadata
base class from APIBeatmap
This commit is contained in:
parent
6dd54a417f
commit
fb7cf35481
@ -10,7 +10,7 @@ using osu.Game.Rulesets;
|
||||
|
||||
namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
public class APIBeatmap : BeatmapMetadata, IBeatmapInfo
|
||||
public class APIBeatmap : IBeatmapInfo
|
||||
{
|
||||
[JsonProperty(@"id")]
|
||||
public int OnlineID { get; set; }
|
||||
@ -24,6 +24,9 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
[JsonProperty("checksum")]
|
||||
public string Checksum { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty(@"user_id")]
|
||||
public int AuthorID { get; set; }
|
||||
|
||||
[JsonProperty(@"beatmapset")]
|
||||
public APIBeatmapSet? BeatmapSet { get; set; }
|
||||
|
||||
@ -75,7 +78,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
|
||||
return new BeatmapInfo
|
||||
{
|
||||
Metadata = set?.Metadata ?? this,
|
||||
Metadata = set?.Metadata ?? new BeatmapMetadata(),
|
||||
Ruleset = rulesets.GetRuleset(RulesetID),
|
||||
StarDifficulty = StarRating,
|
||||
OnlineBeatmapID = OnlineID,
|
||||
@ -106,7 +109,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
|
||||
#region Implementation of IBeatmapInfo
|
||||
|
||||
public IBeatmapMetadataInfo Metadata => this;
|
||||
public IBeatmapMetadataInfo Metadata => new BeatmapMetadata();
|
||||
|
||||
public IBeatmapDifficultyInfo Difficulty => new BeatmapDifficulty
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user