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:
parent
76ba0b833e
commit
257b4052e8
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user