mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 23:23:12 +08:00
Use throw helper methods
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
6d6f165884
commit
b1aff91bba
@ -23,7 +23,7 @@ namespace osu.Game.Storyboards.Commands
|
|||||||
/// <param name="repeatCount">The number of times the loop should repeat. Should be greater than zero. Zero means a single playback.</param>
|
/// <param name="repeatCount">The number of times the loop should repeat. Should be greater than zero. Zero means a single playback.</param>
|
||||||
public StoryboardLoopingGroup(double startTime, int repeatCount)
|
public StoryboardLoopingGroup(double startTime, int repeatCount)
|
||||||
{
|
{
|
||||||
if (repeatCount < 0) throw new ArgumentException("Repeat count must be zero or above.", nameof(repeatCount));
|
ArgumentOutOfRangeException.ThrowIfNegative(repeatCount);
|
||||||
|
|
||||||
loopStartTime = startTime;
|
loopStartTime = startTime;
|
||||||
TotalIterations = repeatCount + 1;
|
TotalIterations = repeatCount + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user