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

@ -7,6 +7,6 @@ onready var calendar = $NameDate/YearCtr/CalendarLbl
func _process(delta):
city_name.text = SimData.city_name
budget.text = str(SimData.budget)
var day = "%02d" % SimData.day
var month = "%02d" % SimData.month
calendar.text = str(day) + "/" + str(month) + "/" + str(SimData.year)
var day = "%02d" % SimTime.day
var month = "%02d" % SimTime.month
calendar.text = str(day) + "/" + str(month) + "/" + str(SimTime.year)