Calendar resource: unit conversions, date arithmetic, and year structure.
Source: addons/calendar_time/game_time/game_calendar/game_calendar.gd
Syntax
class GameCalendar extends ResourceMembers
| Name | Kind | Summary |
|---|---|---|
CalendarLogic | Field | |
CalendarStructure | Field | |
CalendarValidator | Field | |
CalendarConfiguration | Field | |
display_name | Property | UI display name. |
years | Property | Years the calendar represents, recycled in sequence after the last. At least one is required. |
days_per_week | Property | Number of days in one week for this calendar. |
start_day_of_week_index | Property | The array index that the first day of the week starts at |
time_scale | Property | Defines the conversions between time units. |
times_of_day | Property | Named phases of a day (dawn, day, dusk, night). Each `TimeOfDay` has an `HoursTime` enter-time; `DayNightCycleService` derives transitions from this list. Calendars own the schedule, so clocks sharing a calendar share phases. |
start_date | Property | Date that the calendar treats as its epoch or first day. |
structure | Property | |
safe | Property | |
safe_days_per_week | Property | |
advance_date_time | Method | |
get_game_year | Method | |
get_event_day | Method | |
get_game_month | Method | |
get_day_of_week_index | Method | |
get_days_per_week | Method | |
get_days_between | Method | |
get_months_between | Method | |
get_days_into_year | Method | |
get_next_day | Method | |
get_next_date_time | Method | |
get_previous_date | Method | |
get_seconds_from_date | Method | |
get_last_hours_time_as_secs | Method | |
get_last_hours_time_as_date_time | Method | |
validate_runtime | Method | |
get_scale | Method | |
get_seconds_from_date_time | Method | |
configuration_descriptor | Method | |
configuration_hash | Method | |
is_configuration_compatible | Method | |
get_config_identity | Method |