Skip to main content

TimeCommandModule

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

Console module time: sets and reads the time of day and advances real (timeline) time. Server and play mode only.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this module.

Methods​

6 private and internal methods
MemberWhat it is
private static void Future(float progress, char measure = s)time future: moves the timeline forward by an amount in seconds, minutes, hours or days (s, m, h, d).
private static IEnumerable<GameTimeManager.TimeName> Keywords()time keywords: lists the named times time set accepts.
private static TimeSpan PrintCurrentTime()time: logs and returns the current timeline time.
private static void PrintCurrentTimeOfDay(bool isNormalised = false)time ofday: logs the time of day, raw or normalised.
private static void Set(string time)time set: moves time of day to a 24-hour value or a keyword. Normalised time 0 is 06:00.
private static void ToggleDayNight()time toggle: jumps to evening (0.75) if it is day, otherwise to morning (0.25).