1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Make APIScoreInfo derive LegacyScoreInfo

This commit is contained in:
smoogipoo 2019-03-27 17:07:18 +09:00
parent 977122d05f
commit eceecde0f8

View File

@ -8,12 +8,12 @@ using Newtonsoft.Json;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
using osu.Game.Scoring.Legacy;
using osu.Game.Users;
namespace osu.Game.Online.API.Requests.Responses
{
public class APIScoreInfo : ScoreInfo
public class APIScoreInfo : LegacyScoreInfo
{
[JsonProperty(@"score")]
private int totalScore
@ -96,7 +96,11 @@ namespace osu.Game.Online.API.Requests.Responses
}
[JsonProperty(@"mode_int")]
public int OnlineRulesetID { get; set; }
public int OnlineRulesetID
{
get => RulesetID;
set => RulesetID = value;
}
[JsonProperty(@"mods")]
private string[] modStrings { get; set; }