mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Add remarks back to LatestEventTime
This commit is contained in:
parent
81be562379
commit
5a015290b9
@ -40,6 +40,10 @@ namespace osu.Game.Storyboards
|
||||
/// Across all layers, find the latest point in time that a storyboard element ends at.
|
||||
/// Will return null if there are no elements.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This iterates all elements and as such should be used sparingly or stored locally.
|
||||
/// Videos and samples return StartTime as their EndTIme.
|
||||
/// </remarks>
|
||||
public double? LatestEventTime => Layers.SelectMany(l => l.Elements.OfType<IStoryboardElementHasDuration>()).OrderByDescending(e => e.EndTime).FirstOrDefault()?.EndTime;
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user