1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Make RoomScore derive ScoreInfo

This commit is contained in:
smoogipoo 2018-12-22 15:17:35 +09:00
parent 6afd2f7263
commit 3570c35d7f
2 changed files with 4 additions and 15 deletions

View File

@ -98,8 +98,9 @@ namespace osu.Game.Scoring
}
}
[JsonIgnore]
public User User;
[NotMapped]
[JsonProperty("user")]
public User User { get; set; }
[JsonIgnore]
[Column("User")]

View File

@ -102,20 +102,8 @@ namespace osu.Game.Screens.Multi.Match.Components
Overall
}
public class RoomScore
public class RoomScore : ScoreInfo
{
[JsonProperty("user")]
public User User { get; set; }
[JsonProperty("accuracy")]
public double Accuracy { get; set; }
[JsonProperty("total_score")]
public int TotalScore { get; set; }
[JsonProperty("pp")]
public double? PP { get; set; }
[JsonProperty("attempts")]
public int TotalAttempts { get; set; }