mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +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>
|
/// </summary>
|
||||||
public readonly double StartTime;
|
public readonly double StartTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clockrate adjusted start time of <see cref="BaseObject"/>.
|
||||||
|
/// </summary>
|
||||||
|
public readonly double EndTime;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new <see cref="DifficultyHitObject"/>.
|
/// Creates a new <see cref="DifficultyHitObject"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -42,6 +47,7 @@ namespace osu.Game.Rulesets.Difficulty.Preprocessing
|
|||||||
LastObject = lastObject;
|
LastObject = lastObject;
|
||||||
DeltaTime = (hitObject.StartTime - lastObject.StartTime) / clockRate;
|
DeltaTime = (hitObject.StartTime - lastObject.StartTime) / clockRate;
|
||||||
StartTime = hitObject.StartTime / clockRate;
|
StartTime = hitObject.StartTime / clockRate;
|
||||||
|
EndTime = hitObject.GetEndTime() / clockRate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user