Semantic boundary / checkpoint tracker for a GameClock, replacing sleeps. Connects to the clock's TimeSignalBus and records authoritative semantic boundaries: day/month/year change, save-complete and restore-complete, plus a "calendar_ready" latch. A caller can then assert [method has_happened] instead of "sleep and hope the day rolled over". Actual blocking waits (the persistent runtime's job in godot-tools) wait on these same semantic events. They do not use wall-clock sleeps. The tracker is resettable so a persistent session can prove a hot reset produces the same event ordering.
Source: addons/calendar_time/semantic/calendar_time_checkpoints.gd
Syntax
class CalendarTimeCheckpoints extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
CALENDAR_READY | Field | Named checkpoints supported by this tracker. |
TIME_ADVANCED | Field | |
DAY_CHANGED | Field | |
MONTH_CHANGED | Field | |
YEAR_CHANGED | Field | |
SAVE_COMPLETE | Field | |
RESTORE_COMPLETE | Field | |
CHECKPOINTS | Field | All supported checkpoint names, in canonical order. |
attach | Method | |
reset | Method | |
has_happened | Method | |
count | Method | |
to_dict | Method | |
mark_saved | Method |