Skip to content
ct

Class

AgeState

Generated GDScript class reference for CalendarTime.AgeState.

Status
Current
Version
v2.0.4
Updated
2026-08-09

Represents the age of one or more objects whether that is the age of a game world or a specific object within the scene. Share the object to reference the same data as it changes.

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

Syntax

class AgeState extends RefCounted

Members

NameKindSummary
AgeStateCoordinatorFieldThe age of the current object instance not including past scene versions. `AgeStateCoordinator` is preloaded here to manage this state's stage transitions.
currentPropertyCurrent age value of this state, advanced by the owning age system.
totalPropertyThe total amount that the object including all past versions has accumulated.
createdPropertyThe age of the world when this age state was created.
parent_idPropertyThe state that this object exists within. Generally a world AgeState.
state_idPropertyUnique identifier representing this age state for serialization. See Keys.STATE_ID for the on-disk key name.
coordinatorPropertyCoordinator that owns and advances this age state.
add_ageMethod
get_total_elapsedMethod
to_dictMethod
from_dictMethod
CURRENTFieldCurrent age is read and written under this serialization key.
TOTALFieldTotal age is read and written under this serialization key.
CREATEDFieldCreated age is read and written under this serialization key.
PARENT_IDFieldParent identifier is read and written under this serialization key.
SCHEMA_VERSIONFieldBumped when an on-disk key changes shape. v2 stored the UUID under the key "id"; v3 stores it under "state_id".
STATE_IDFieldSchema v3 key. Written by to_dict().
LEGACY_IDFieldLegacy v1/v2 key. Read-only — from_dict() auto-migrates it to STATE_ID when no STATE_ID is present. See MIGRATION.md §5.
get_keysMethod