TimeView
Read-only view of the current in-game time.
public class TimeView
Inheritance System.Object → TimeView
Constructors
TimeView(int, int, string, int)
Constructs a snapshot view of the current in-game clock.
public TimeView(int hour, int minute, string bucket, int minutesElapsed);
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.
Properties
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; }