Source: addons/calendar_time/game_time/time_units/game_date.gd
Syntax
class GameDate extends ResourceMembers
| Name | Kind | Summary |
|---|---|---|
day | Property | Represents 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. |
month | Property | The one-based month of the year. |
year | Property | The year number for the given date |
is_same_date | Method | |
same_day | Property | |
same_month | Property | |
same_year | Property | |
get_days_count | Method | |
is_valid_date | Method | |
game_month | Property | |
to_dict | Method | |
from_dict | Method | |
as_formatted | Method |