mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 02:49:53 +08:00
Remove JsonIgnores, require opt-in properties
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user