smrendererv3/SMCode/SM.Base/Time/Interval.cs
2021-03-17 17:09:59 +01:00

32 lines
No EOL
591 B
C#

#region usings
using System;
using SM.Base.Window;
#endregion
namespace SM.Base.Time
{
/// <summary>
/// Performs intervals.
/// </summary>
public class Interval : Timer
{
/// <inheritdoc />
public Interval(float seconds) : base(seconds)
{
}
/// <inheritdoc />
public Interval(TimeSpan timeSpan) : base(timeSpan)
{
}
/// <inheritdoc />
protected override void Stopping(UpdateContext context)
{
TriggerEndAction(context);
Reset();
}
}
}