Give HitObject some HitWindows

This commit is contained in:
smoogipoo 2018-02-02 18:47:10 +09:00
parent a0c1662fb7
commit 558c53a6ba

View File

@ -49,6 +49,15 @@ namespace osu.Game.Rulesets.Objects
[JsonIgnore]
public bool Kiai { get; private set; }
private float overallDifficulty = BeatmapDifficulty.DEFAULT_DIFFICULTY;
private HitWindows hitWindows;
/// <summary>
/// The keypress hit windows for this <see cref="HitObject"/>.
/// </summary>
public HitWindows HitWindows => hitWindows ?? (hitWindows = new HitWindows(overallDifficulty));
private readonly SortedList<HitObject> nestedHitObjects = new SortedList<HitObject>((h1, h2) => h1.StartTime.CompareTo(h2.StartTime));
[JsonIgnore]
@ -75,6 +84,9 @@ namespace osu.Game.Rulesets.Objects
Kiai = effectPoint.KiaiMode;
SampleControlPoint = samplePoint;
overallDifficulty = difficulty.OverallDifficulty;
hitWindows = null;
}
protected virtual void CreateNestedHitObjects()