TimeView
Read-only view of the current in-game time.
public class TimeView
Inheritance System.Object → TimeView
Constructors
TimeView(int, int, string, int, int)
Constructs a snapshot view of the current in-game clock.
public TimeView(int hour, int minute, string bucket, int minutesElapsed, int absoluteDay=1);
Parameters
hour System.Int32
Hour of the day in 0–23 range.
minute System.Int32
Minute of the hour in 0–59 range.
bucket System.String
Author-defined time-of-day bucket id (e.g. "morning", "night").
minutesElapsed System.Int32
Total minutes since session start.
absoluteDay System.Int32
Day number, 1-indexed; defaults to 1 for existing construction sites.
Properties
AbsoluteDay
Day number, 1-indexed; increments when the clock crosses midnight.
public int AbsoluteDay { get; }
Property Value
Bucket
Author-defined time-of-day bucket id (e.g. "morning", "night").
public string Bucket { get; }
Property Value
Hour
Hour of the day in 0–23 range.
public int Hour { get; }
Property Value
Minute
Minute of the hour in 0–59 range.
public int Minute { get; }
Property Value
MinutesElapsed
Total minutes since session start. Monotonically non-decreasing.
public int MinutesElapsed { get; }