Source: addons/calendar_time/ageing/state/age_state.gd
Syntax
class AgeState extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
AgeStateCoordinator | Field | Age 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. |
current | Property | Current age, advanced by the owning age system. |
total | Property | Total accumulated including all past scene versions. |
created | Property | World age when this state was created. |
parent_id | Property | State this object exists within; generally a world AgeState. |
state_id | Property | Unique identifier for serialization (see Keys.STATE_ID). |
coordinator | Property | Coordinator that owns and advances this state. |
add_age | Method | |
get_total_elapsed | Method | |
to_dict | Method | |
from_dict | Method | |
CURRENT | Field | |
TOTAL | Field | |
CREATED | Field | |
PARENT_ID | Field | |
SCHEMA_VERSION | Field | Bumped when an on-disk key changes shape. v2 stored the UUID under "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() migrates it to STATE_ID when STATE_ID is absent (see MIGRATION.md §5). |
get_keys | Method |