Moved date variables to dedicated singleton

Due to the growing complexity of date system, it's been moved to its own dedicated singleton.
This commit is contained in:
Tony Bark 2021-05-29 03:09:09 -04:00
parent ae1b600928
commit b443ee61fe
6 changed files with 56 additions and 33 deletions

View file

@ -17,10 +17,10 @@ const valid_commands = [
]
func set_month(month):
SimData.month = month
SimTime.month = month
func set_year(year):
SimData.year = year
SimTime.year = year
func show_policy(policy):
SimEvents.emit_signal("policy_message", policy)