10 public static bool IsActive
14 return VirtualDate.current !=
null;
21 for (
int i = 0; i < this.raw.Length; i++)
23 this.raw[i] =
EClass.world.date.raw[i];
26 while (elapsedHours > 0)
55 if (this.branchMap ==
null)
58 this.branchMap.Refresh();
60 return this.branchMap;
64 public void BuildSunMap()
66 Debug.Log(
"Building Sunmap");
67 this.sunMap =
new HashSet<int>();
68 foreach (
Trait trait
in EClass._map.props.installed.traits.suns.Values)
70 foreach (
Point point
in trait.ListPoints(
null,
false))
72 this.sunMap.Add(point.index);
78 public void SimulateHour()
87 EClass._zone.OnSimulateHour(
this);
91 public void SimulateDay()
100 EClass._zone.OnSimulateDay(
this);
104 public void SimulateMonth()
106 int month = base.month;
107 base.month = month + 1;
113 EClass._zone.OnSimulateMonth(
this);
117 public void SimulateYear()
119 int year = base.year;
120 base.year = year + 1;
124 public static Date current;
127 public bool IsRealTime;
130 public HashSet<int> sunMap;