TimerStep
Class TimerStep
Namespace: SwiftlyS2.Shared.Scheduler
Assembly: SwiftlyS2.CS2.dll
public abstract record TimerStep : IEquatable<TimerStep>Inheritance
Implements
Inherited Members
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.MemberwiseClone()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Methods
Spin()
Spin the timer.
The timer will be executed immediately on next tick.
public static TimerStep Spin()Returns
- TimerStep — The timer step.
Stop()
Stop the timer.
public static TimerStep Stop()Returns
- TimerStep — The timer step.
WaitForMilliseconds(long)
Wait for a number of milliseconds.
public static TimerStep WaitForMilliseconds(long milliseconds)Parameters
- milliseconds long — The number of milliseconds to wait.
Returns
- TimerStep — The timer step.
WaitForSeconds(float)
Wait for a number of seconds.
public static TimerStep WaitForSeconds(float seconds)Parameters
- seconds float — The number of seconds to wait.
Returns
- TimerStep — The timer step.
WaitForTicks(long)
Wait for a number of ticks.
public static TimerStep WaitForTicks(long ticks)Parameters
- ticks long — The number of ticks to wait.
Returns
- TimerStep — The timer step.