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 RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
AgeStateCoordinator | Field | The age of the current object instance not including past scene versions. `AgeStateCoordinator` is preloaded here to manage this state's stage transitions. |
current | Property | Current age value of this state, advanced by the owning age system. |
total | Property | The total amount that the object including all past versions has accumulated. |
created | Property | The age of the world when this age state was created. |
parent_id | Property | The state that this object exists within. Generally a world AgeState. |
state_id | Property | Unique identifier representing this age state for serialization. See Keys.STATE_ID for the on-disk key name. |
coordinator | Property | Coordinator that owns and advances this age state. |
add_age | Method | |
get_total_elapsed | Method | |
to_dict | Method | |
from_dict | Method | |
CURRENT | Field | Current age is read and written under this serialization key. |
TOTAL | Field | Total age is read and written under this serialization key. |
CREATED | Field | Created age is read and written under this serialization key. |
PARENT_ID | Field | Parent identifier is read and written under this serialization key. |
SCHEMA_VERSION | Field | Bumped when an on-disk key changes shape. v2 stored the UUID under the key "id"; v3 stores it under "state_id". |
STATE_ID | Field | Schema v3 key. Written by to_dict(). |
LEGACY_ID | Field | Legacy v1/v2 key. Read-only — from_dict() auto-migrates it to STATE_ID when no STATE_ID is present. See MIGRATION.md §5. |
get_keys | Method |