mirror of
https://github.com/osukey/osukey.git
synced 2025-05-22 14:07:38 +09:00
Remove JsonIgnores, require opt-in properties
This commit is contained in:
parent
c8a01c35f7
commit
2c45a327bb
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user