Skip to content

Class

AgeState

Generated GDScript class reference for CalendarTime.AgeState.

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

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

Syntax

class AgeState extends RefCounted

Members

NameKindSummary
AgeStateCoordinatorFieldAge of one or more objects, such as a game world or an object in the scene. Share the object to reference the same data as it changes.
currentPropertyCurrent age, advanced by the owning age system.
totalPropertyTotal accumulated including all past scene versions.
createdPropertyWorld age when this state was created.
parent_idPropertyState this object exists within; generally a world AgeState.
state_idPropertyUnique identifier for serialization (see Keys.STATE_ID).
coordinatorPropertyCoordinator that owns and advances this state.
add_ageMethod
get_total_elapsedMethod
to_dictMethod
from_dictMethod
CURRENTField
TOTALField
CREATEDField
PARENT_IDField
SCHEMA_VERSIONFieldBumped when an on-disk key changes shape. v2 stored the UUID under "id"; v3 stores it under "state_id".
STATE_IDFieldSchema v3 key, written by to_dict().
LEGACY_IDFieldLegacy v1/v2 key, read-only. from_dict() migrates it to STATE_ID when STATE_ID is absent (see MIGRATION.md §5).
get_keysMethod