Create a constructor for break period

For simple construction of break periods (e.g. filling a method with an array of break periods inside a test case)
This commit is contained in:
Salman Ahmed
2020-04-05 21:29:03 +03:00
parent 9477629a56
commit 0eaea8ef9d
3 changed files with 20 additions and 21 deletions

View File

@ -32,6 +32,17 @@ namespace osu.Game.Beatmaps.Timing
/// </summary>
public bool HasEffect => Duration >= MIN_BREAK_DURATION;
/// <summary>
/// Constructs a new break period.
/// </summary>
/// <param name="startTime">The start time of the break period.</param>
/// <param name="endTime">The end time of the break period.</param>
public BreakPeriod(double startTime, double endTime)
{
StartTime = startTime;
EndTime = endTime;
}
/// <summary>
/// Whether this break contains a specified time.
/// </summary>