1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:43:00 +08:00

Add EndTime to DifficultyHitObject for future convenience

This commit is contained in:
Samuel Cattini-Schultz 2021-03-27 18:38:43 +11:00
parent 010db8968f
commit 068f00d8a0

View File

@ -30,6 +30,11 @@ namespace osu.Game.Rulesets.Difficulty.Preprocessing
/// </summary>
public readonly double StartTime;
/// <summary>
/// Clockrate adjusted start time of <see cref="BaseObject"/>.
/// </summary>
public readonly double EndTime;
/// <summary>
/// Creates a new <see cref="DifficultyHitObject"/>.
/// </summary>
@ -42,6 +47,7 @@ namespace osu.Game.Rulesets.Difficulty.Preprocessing
LastObject = lastObject;
DeltaTime = (hitObject.StartTime - lastObject.StartTime) / clockRate;
StartTime = hitObject.StartTime / clockRate;
EndTime = hitObject.GetEndTime() / clockRate;
}
}
}