1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-25 05:02:55 +08:00
osu-lazer/osu.Game/Storyboards/IStoryboardElementWithDuration.cs

22 lines
696 B
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Storyboards
{
/// <summary>
2021-04-18 11:35:54 +08:00
/// A <see cref="IStoryboardElement"/> that ends at a different time than its start time.
/// </summary>
public interface IStoryboardElementWithDuration : IStoryboardElement
{
2021-04-18 11:35:54 +08:00
/// <summary>
/// The time at which the <see cref="IStoryboardElement"/> ends.
/// </summary>
double EndTime { get; }
/// <summary>
/// The duration of the StoryboardElement.
/// </summary>
2021-05-04 15:04:59 +08:00
double Duration => EndTime - StartTime;
}
}