From 45382a81277ae4f5663bded357cc8d9920eacef2 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Mon, 15 Nov 2021 16:32:25 +0900 Subject: [PATCH] Ignore some properties --- .../Difficulty/OsuDifficultyAttributes.cs | 8 ++++---- osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Game.Rulesets.Osu/Difficulty/OsuDifficultyAttributes.cs b/osu.Game.Rulesets.Osu/Difficulty/OsuDifficultyAttributes.cs index 75d1eed1ab..0d76cb855b 100644 --- a/osu.Game.Rulesets.Osu/Difficulty/OsuDifficultyAttributes.cs +++ b/osu.Game.Rulesets.Osu/Difficulty/OsuDifficultyAttributes.cs @@ -29,16 +29,16 @@ namespace osu.Game.Rulesets.Osu.Difficulty [JsonProperty("overall_difficulty")] public double OverallDifficulty { get; set; } - [JsonProperty("drain_rate")] + [JsonIgnore] public double DrainRate { get; set; } - [JsonProperty("hit_circle_count")] + [JsonIgnore] public int HitCircleCount { get; set; } - [JsonProperty("slider_count")] + [JsonIgnore] public int SliderCount { get; set; } - [JsonProperty("spinner_count")] + [JsonIgnore] public int SpinnerCount { get; set; } public override IEnumerable<(int attributeId, object value)> ToDatabase() diff --git a/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs b/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs index 96d52833e0..6a3b97ab1d 100644 --- a/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs +++ b/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs @@ -17,10 +17,10 @@ namespace osu.Game.Rulesets.Difficulty [JsonIgnore] public Skill[] Skills { get; set; } - [JsonProperty("star_rating")] + [JsonProperty("star_rating", Order = -3)] public double StarRating { get; set; } - [JsonProperty("max_combo")] + [JsonProperty("max_combo", Order = -2)] public int MaxCombo { get; set; } public DifficultyAttributes()