1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Add {ScoreInfo,UserStatistics}.Accuracy

This commit is contained in:
recapitalverb 2020-02-03 22:09:07 +07:00
parent 76ba0b833e
commit 257b4052e8
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,9 @@ namespace osu.Game.Scoring
[Column(TypeName = "DECIMAL(1,4)")]
public double Accuracy { get; set; }
[JsonIgnore]
public string DisplayAccuracy => Accuracy == 1 ? "100%" : $"{Accuracy:P2}";
[JsonProperty(@"pp")]
public double? PP { get; set; }

View File

@ -43,6 +43,9 @@ namespace osu.Game.Users
[JsonProperty(@"hit_accuracy")]
public decimal Accuracy;
[JsonIgnore]
public string DisplayAccuracy => $"{Accuracy:P2}";
[JsonProperty(@"play_count")]
public int PlayCount;