/// <summary> /// Pause a timer. /// </summary> /// <param name="timer"></param> /// <returns></returns> public static TimerControl Stop(ETime.Timer timer) => smh => { ETime.Timer.Stop(timer); return(Task.CompletedTask); };
/// <summary> /// Restart a timer. /// </summary> /// <param name="timer"></param> /// <returns></returns> public static TimerControl Restart(ETime.Timer timer) => smh => { ETime.Timer.Restart(timer); return(Task.CompletedTask); };
/// <summary> /// Start a timer with a speed multiplier. /// </summary> /// <param name="timer"></param> /// <param name="m"></param> /// <returns></returns> public static TimerControl StartM(ETime.Timer timer, float m) => smh => { ETime.Timer.Start(timer, m); return(Task.CompletedTask); };
/// <summary> /// Restarts the given timer for every iteration of the looper. Resolved before preloop rules. /// </summary> public static GenCtxProperty Timer(ETime.Timer timer) => new TimerProp(timer);