Expose more pieces of APIBeatmap for testing purposes

This commit is contained in:
Dean Herbert 2021-10-29 17:49:31 +09:00
parent 993a28b37e
commit b8ee7e05f4

View File

@ -43,16 +43,16 @@ namespace osu.Game.Online.API.Requests.Responses
public double StarRating { get; set; } public double StarRating { get; set; }
[JsonProperty(@"drain")] [JsonProperty(@"drain")]
private float drainRate { get; set; } public float DrainRate { get; set; }
[JsonProperty(@"cs")] [JsonProperty(@"cs")]
private float circleSize { get; set; } public float CircleSize { get; set; }
[JsonProperty(@"ar")] [JsonProperty(@"ar")]
private float approachRate { get; set; } public float ApproachRate { get; set; }
[JsonProperty(@"accuracy")] [JsonProperty(@"accuracy")]
private float overallDifficulty { get; set; } public float OverallDifficulty { get; set; }
[JsonIgnore] [JsonIgnore]
public double Length { get; set; } public double Length { get; set; }
@ -115,10 +115,10 @@ namespace osu.Game.Online.API.Requests.Responses
public IBeatmapDifficultyInfo Difficulty => new BeatmapDifficulty public IBeatmapDifficultyInfo Difficulty => new BeatmapDifficulty
{ {
DrainRate = drainRate, DrainRate = DrainRate,
CircleSize = circleSize, CircleSize = CircleSize,
ApproachRate = approachRate, ApproachRate = ApproachRate,
OverallDifficulty = overallDifficulty, OverallDifficulty = OverallDifficulty,
}; };
IBeatmapSetInfo? IBeatmapInfo.BeatmapSet => BeatmapSet; IBeatmapSetInfo? IBeatmapInfo.BeatmapSet => BeatmapSet;