Implement things a bit more to remove warnings.

This commit is contained in:
smoogipooo
2017-05-18 18:04:32 +09:00
parent 873ff34487
commit afd3eb4b8d
3 changed files with 78 additions and 43 deletions

View File

@ -22,5 +22,12 @@ namespace osu.Game.Beatmaps.Events
/// Total duration of all breaks.
/// </summary>
public double TotalBreakTime => Breaks.Sum(b => b.Duration);
/// <summary>
/// Retrieves the active background at a time.
/// </summary>
/// <param name="time">The time to retrieve the background at.</param>
/// <returns>The background.</returns>
public BackgroundEvent BackgroundAt(double time) => Backgrounds.FirstOrDefault(b => b.StartTime <= time);
}
}