Skip to main content

RepeatCommandModule

A static class in Root.Township, Alta.Console.Commands.

Console module repeat: runs the next command typed a set number of times at an interval, or reruns the last command.

Fields​

6 private and internal fields
MemberWhat it is
private static int countRepeat count for the next armed repeater.
private static float intervalSeconds between repeats for the next armed repeater.
private static bool isLoggingWhether the next armed repeater logs each iteration.
private static Logger loggerNLog logger for this module.
private static uint nextIdID given to the most recently armed repeater.
private static Dictionary<uint, AltaCoroutine> runningRunning repeater coroutines by ID.

Methods​

6 private and internal methods
MemberWhat it is
private static void Handler(CommandSearchResult result)Custom command handler Repeat installs; starts a coroutine that repeats the next matched command and tracks it by ID.
private static void Repeat(int count, float intervalInSeconds, bool isLoggingProgress = false)repeat: arms the repeater so the next command entered runs count times, intervalInSeconds apart. The private coroutine overload does the looping.
private static IEnumerator Repeat(CommandSearchResult commandResult, int repeatCount, float interval, bool isLogging) (iterator)repeat: arms the repeater so the next command entered runs count times, intervalInSeconds apart. The private coroutine overload does the looping.
private static Task RepeatLastAsync()repeat last: runs the last console command again.
private static void Stop(uint id)repeat stop: stops the repeater with the given ID.
private static void StopAll()repeat stopall: stops every running repeater.