1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Ignore some properties

This commit is contained in:
Dan Balasescu 2021-11-15 16:32:25 +09:00
parent 0cfd6fdf04
commit 45382a8127
2 changed files with 6 additions and 6 deletions

View File

@ -29,16 +29,16 @@ namespace osu.Game.Rulesets.Osu.Difficulty
[JsonProperty("overall_difficulty")] [JsonProperty("overall_difficulty")]
public double OverallDifficulty { get; set; } public double OverallDifficulty { get; set; }
[JsonProperty("drain_rate")] [JsonIgnore]
public double DrainRate { get; set; } public double DrainRate { get; set; }
[JsonProperty("hit_circle_count")] [JsonIgnore]
public int HitCircleCount { get; set; } public int HitCircleCount { get; set; }
[JsonProperty("slider_count")] [JsonIgnore]
public int SliderCount { get; set; } public int SliderCount { get; set; }
[JsonProperty("spinner_count")] [JsonIgnore]
public int SpinnerCount { get; set; } public int SpinnerCount { get; set; }
public override IEnumerable<(int attributeId, object value)> ToDatabase() public override IEnumerable<(int attributeId, object value)> ToDatabase()

View File

@ -17,10 +17,10 @@ namespace osu.Game.Rulesets.Difficulty
[JsonIgnore] [JsonIgnore]
public Skill[] Skills { get; set; } public Skill[] Skills { get; set; }
[JsonProperty("star_rating")] [JsonProperty("star_rating", Order = -3)]
public double StarRating { get; set; } public double StarRating { get; set; }
[JsonProperty("max_combo")] [JsonProperty("max_combo", Order = -2)]
public int MaxCombo { get; set; } public int MaxCombo { get; set; }
public DifficultyAttributes() public DifficultyAttributes()