GameDateDisplay

Overview

Advances and displays the in-game date once per simulation tick. Raises monthPassed/yearPassed when the date rolls over and updates the underlying IntVariables accordingly.

Serialized

  • IntVariable currentDay, currentMonth, currentYear
  • VoidEvent yearPassed, monthPassed
  • TextMeshProUGUI dateDisplay

Behavior

  • Start() → initialize currentDate and set text dd/MM/yyyy.
  • Tick()
    • Reconstruct currentDate from variables, AddDays(1), update text.
    • If month/year changed, raise the corresponding events.
    • Write back currentDay, currentMonth, currentYear from the new date.
  • Statics: CurrentDate and CurrentDateString accessors.