Implement Duration via the interface

This commit is contained in:
Dean Herbert
2021-05-04 16:04:59 +09:00
parent bb9fa1a25e
commit ffc88db47a
2 changed files with 1 additions and 3 deletions

View File

@ -16,6 +16,6 @@ namespace osu.Game.Storyboards
/// <summary> /// <summary>
/// The duration of the StoryboardElement. /// The duration of the StoryboardElement.
/// </summary> /// </summary>
double Duration { get; } double Duration => EndTime - StartTime;
} }
} }

View File

@ -65,8 +65,6 @@ namespace osu.Game.Storyboards
} }
} }
public double Duration => EndTime - StartTime;
public bool HasCommands => TimelineGroup.HasCommands || loops.Any(l => l.HasCommands); public bool HasCommands => TimelineGroup.HasCommands || loops.Any(l => l.HasCommands);
private delegate void DrawablePropertyInitializer<in T>(Drawable drawable, T value); private delegate void DrawablePropertyInitializer<in T>(Drawable drawable, T value);