Skip to content
ct

Class

GameDate

Generated GDScript class reference for CalendarTime.GameDate.

Status
Current
Version
v2.0
Updated
Generated from GDScript addon source

Source: addons/calendar_time/game_time/time_units/game_date.gd

Syntax

class GameDate extends Resource

Members

NameKindSummary
dayPropertyRepresents the day, month, and year for gameplay needs. Serialization contract (Calendar Time 2.0): save/load uses the property names [member day], [member month], [member year] via [method to_dict] / [method from_dict]. Payloads never store [code]class_name[/code] strings. Renaming the global class (inspector front-end type) or tightening [code]@export_range[/code] bounds does not change the dict keys — only renaming these properties requires a migration (see MIGRATION.md § serialization keys). The one-based day of the month.
monthPropertyThe one-based month of the year.
yearPropertyThe year number for the given date
is_same_dateMethod
same_dayProperty
same_monthProperty
same_yearProperty
get_days_countMethod
is_valid_dateMethod
game_monthProperty
to_dictMethod
from_dictMethod
as_formattedMethod