1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:43:21 +08:00

Make HitWindows settable by derived HitObjects

This commit is contained in:
smoogipoo 2018-02-02 18:53:05 +09:00
parent acf20c079c
commit 70462ebee3

View File

@ -56,7 +56,11 @@ namespace osu.Game.Rulesets.Objects
/// <summary>
/// The keypress hit windows for this <see cref="HitObject"/>.
/// </summary>
public HitWindows HitWindows => hitWindows ?? (hitWindows = new HitWindows(overallDifficulty));
public HitWindows HitWindows
{
get => hitWindows ?? (hitWindows = new HitWindows(overallDifficulty));
protected set => hitWindows = value;
}
private readonly SortedList<HitObject> nestedHitObjects = new SortedList<HitObject>((h1, h2) => h1.StartTime.CompareTo(h2.StartTime));