mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:35:10 +08:00
Add EndTime to DifficultyHitObject for future convenience
This commit is contained in:
parent
010db8968f
commit
068f00d8a0
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user