Skip to content

Class

AgeStateRegistry

Generated GDScript class reference for CalendarTime.AgeStateRegistry.

Status
Current
Version
v2.1.1
Source updated
2026-08-09
Generated on
2026-09-26

Registers AgeState ids and Resource references per clock, with save/load support. Each GameClock owns one registry (see GameClock.age_registry); there is no process-wide singleton, so two clocks never share age state and tests stay hermetic. AgeService resolves via clock.age_registry.get_state_or_new(); AgeComponent via its own clock.

Source: addons/calendar_time/ageing/state/age_state_registry.gd

Syntax

class AgeStateRegistry

Members

NameKindSummary
AgeSignalBusFieldEmits registry resolution events.
AgeStateCoordinatorFieldSupplies age-state definitions to registry entries.
debugPropertyWhen true, logs verbose operation traces.
signal_busPropertyEmits state-resolution events.
coordinatorPropertySupplies age-state definitions to registry entries.
main_age_idPropertyDefault parent id for states without an explicit parent; set before creating children.
registerMethod
detachMethod
get_state_or_newMethod
get_stateMethod
get_sizeMethod
get_allMethod
has_stateMethod
removeMethod
clearMethod
generate_uuidMethod
to_dictMethod
from_dictMethod