Fix non-convert slider and spinner serialization

This commit is contained in:
Dean Herbert
2020-09-14 17:08:22 +09:00
parent 3e7f70e225
commit a8b405791a
4 changed files with 12 additions and 5 deletions

View File

@ -3,6 +3,7 @@
using osu.Game.Rulesets.Objects.Types;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Audio;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
@ -29,6 +30,7 @@ namespace osu.Game.Rulesets.Objects.Legacy
public List<IList<HitSampleInfo>> NodeSamples { get; set; }
public int RepeatCount { get; set; }
[JsonIgnore]
public double Duration
{
get => this.SpanCount() * Distance / Velocity;