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.
- Listed in Console, logging and analytics
- Attributes
Module
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private static int count | Repeat count for the next armed repeater. |
private static float interval | Seconds between repeats for the next armed repeater. |
private static bool isLogging | Whether the next armed repeater logs each iteration. |
private static Logger logger | NLog logger for this module. |
private static uint nextId | ID given to the most recently armed repeater. |
private static Dictionary<uint, AltaCoroutine> running | Running repeater coroutines by ID. |
Methods
6 private and internal methods
| Member | What 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. |