mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Implement Duration via the interface
This commit is contained in:
parent
bb9fa1a25e
commit
ffc88db47a
@ -16,6 +16,6 @@ namespace osu.Game.Storyboards
|
||||
/// <summary>
|
||||
/// The duration of the StoryboardElement.
|
||||
/// </summary>
|
||||
double Duration { get; }
|
||||
double Duration => EndTime - StartTime;
|
||||
}
|
||||
}
|
||||
|
@ -65,8 +65,6 @@ namespace osu.Game.Storyboards
|
||||
}
|
||||
}
|
||||
|
||||
public double Duration => EndTime - StartTime;
|
||||
|
||||
public bool HasCommands => TimelineGroup.HasCommands || loops.Any(l => l.HasCommands);
|
||||
|
||||
private delegate void DrawablePropertyInitializer<in T>(Drawable drawable, T value);
|
||||
|
Loading…
Reference in New Issue
Block a user