mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Give HitObject some HitWindows
This commit is contained in:
parent
a0c1662fb7
commit
558c53a6ba
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user