2021-04-15 21:17:02 +00:00
|
|
|
// 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.
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2021-04-15 21:17:02 +00:00
|
|
|
namespace osu.Game.Storyboards
|
|
|
|
{
|
2021-04-17 19:27:22 +00:00
|
|
|
/// <summary>
|
2021-04-18 03:35:54 +00:00
|
|
|
/// A <see cref="IStoryboardElement"/> that ends at a different time than its start time.
|
2021-04-17 19:27:22 +00:00
|
|
|
/// </summary>
|
2021-04-18 04:45:24 +00:00
|
|
|
public interface IStoryboardElementWithDuration : IStoryboardElement
|
2021-04-15 21:17:02 +00:00
|
|
|
{
|
2021-04-18 03:35:54 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The time at which the <see cref="IStoryboardElement"/> ends.
|
|
|
|
/// </summary>
|
2021-04-15 21:17:02 +00:00
|
|
|
double EndTime { get; }
|
2021-04-18 04:45:24 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The duration of the StoryboardElement.
|
|
|
|
/// </summary>
|
2021-05-04 07:04:59 +00:00
|
|
|
double Duration => EndTime - StartTime;
|
2021-04-15 21:17:02 +00:00
|
|
|
}
|
|
|
|
}
|