mirror of
https://github.com/osukey/osukey.git
synced 2025-05-22 22:17:36 +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")]
|
[JsonProperty("overall_difficulty")]
|
||||||
public double OverallDifficulty { get; set; }
|
public double OverallDifficulty { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public double DrainRate { get; set; }
|
public double DrainRate { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public int HitCircleCount { get; set; }
|
public int HitCircleCount { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public int SliderCount { get; set; }
|
public int SliderCount { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public int SpinnerCount { get; set; }
|
public int SpinnerCount { get; set; }
|
||||||
|
|
||||||
public override IEnumerable<(int attributeId, object value)> ToDatabaseAttributes()
|
public override IEnumerable<(int attributeId, object value)> ToDatabaseAttributes()
|
||||||
|
@ -9,12 +9,11 @@ using osu.Game.Rulesets.Mods;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Difficulty
|
namespace osu.Game.Rulesets.Difficulty
|
||||||
{
|
{
|
||||||
|
[JsonObject(MemberSerialization.OptIn)]
|
||||||
public class DifficultyAttributes
|
public class DifficultyAttributes
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
|
||||||
public Mod[] Mods { get; set; }
|
public Mod[] Mods { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public Skill[] Skills { get; set; }
|
public Skill[] Skills { get; set; }
|
||||||
|
|
||||||
[JsonProperty("star_rating", Order = -3)]
|
[JsonProperty("star_rating", Order = -3)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user