mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Don't serialize TotalBreakTime
This commit is contained in:
parent
245b5f759f
commit
f5f7658e90
@ -34,15 +34,16 @@ namespace osu.Game.Beatmaps
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public BeatmapMetadata Metadata => BeatmapInfo?.Metadata ?? BeatmapInfo?.BeatmapSet?.Metadata;
|
public BeatmapMetadata Metadata => BeatmapInfo?.Metadata ?? BeatmapInfo?.BeatmapSet?.Metadata;
|
||||||
|
|
||||||
[JsonConverter(typeof(TypedListConverter<HitObject>))]
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The HitObjects this Beatmap contains.
|
/// The HitObjects this Beatmap contains.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonConverter(typeof(TypedListConverter<HitObject>))]
|
||||||
public List<T> HitObjects = new List<T>();
|
public List<T> HitObjects = new List<T>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Total amount of break time in the beatmap.
|
/// Total amount of break time in the beatmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
public double TotalBreakTime => Breaks.Sum(b => b.Duration);
|
public double TotalBreakTime => Breaks.Sum(b => b.Duration);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user