Serves as a context for connecting to the AgeState for a game object
Source: addons/calendar_time/ageing/age_component.gd
Syntax
class AgeComponent extends NodeMembers
| Name | Kind | Summary |
|---|---|---|
AgeSignalBus | Field | Emitted when the component's Age State changes `AgeSignalBus` is preloaded here to publish this component's age-state changes. |
age_state_changed | Signal | Emitted when this component's current age state moves from one stage to another. |
age_preset | Property | Preset that defines the age stages, thresholds, and visuals for this component. |
clock | Property | The clock this component ages with. Resolved from `clock.age_registry` so every component scoped to the same clock reads/writes the same hermetic registry. Two `AgeComponent`s bound to different clocks see different age states. |
old_registry | Property | The old registry before the swap, for cleanup. |
carried_state | Property | State carried from the old clock across the rebind. |
adopted_id | Property | ID returned by register() after cross-registry adoption. |
age_state | Property | Reference to the AgeState of this AgeComponent |
old | Property | Snapshot of the prior age state, kept for change comparison during a transition. |
ensure_registry_resolved | Method | |
has_age_registry | Method | |
get_age_signal_bus | Method | |
transfer_state | Method | |
to_dict | Method | |
from_dict | Method | |
AGE_STATE_ID | Field | Age state identifier is serialized under this key. |
get_keys | Method |