Remove JsonIgnores, require opt-in properties

This commit is contained in:
Dan Balasescu 2021-11-15 19:54:35 +09:00
parent c8a01c35f7
commit 2c45a327bb
2 changed files with 1 additions and 6 deletions

View File

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

View File

@ -9,12 +9,11 @@ using osu.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Difficulty
{
[JsonObject(MemberSerialization.OptIn)]
public class DifficultyAttributes
{
[JsonIgnore]
public Mod[] Mods { get; set; }
[JsonIgnore]
public Skill[] Skills { get; set; }
[JsonProperty("star_rating", Order = -3)]