mirror of
https://github.com/tonytins/citylimits
synced 2025-12-15 20:54:43 -05:00
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:
parent
ae1b600928
commit
b443ee61fe
6 changed files with 56 additions and 33 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue