swiftlys2/docs/api/ai/
API Reference Scheduler

TimerStep

Class
Namespace: SwiftlyS2.Shared.Scheduler · Assembly: SwiftlyS2.CS2.dll
public abstract record TimerStep : IEquatable<TimerStep>
Inherits object
View source

Methods

Spin()

Spin the timer. The timer will be executed immediately on next tick.

public static TimerStep Spin()
Returns
The timer step.

Stop()

Stop the timer.

public static TimerStep Stop()
Returns
The timer step.

WaitForMilliseconds(long)

Wait for a number of milliseconds.

public static TimerStep WaitForMilliseconds(long milliseconds)
Parameters
  • millisecondslongThe number of milliseconds to wait.
Returns
The timer step.

WaitForSeconds(float)

Wait for a number of seconds.

public static TimerStep WaitForSeconds(float seconds)
Parameters
  • secondsfloatThe number of seconds to wait.
Returns
The timer step.

WaitForTicks(long)

Wait for a number of ticks.

public static TimerStep WaitForTicks(long ticks)
Parameters
  • tickslongThe number of ticks to wait.
Returns
The timer step.