ClockGroupSerializer — save/load facade for a ClockGroup. Produces one namespaced dict per clock combining time and age state. Per-clock shape: clock_id, persistent_id, time_state, age_states, age_service_state. Top-level shape: { group.save_key: { clock_id: per-clock dict } }. Identity is clock_id (which honors persistent_id when set), not array index. Saves restore by id regardless of host.clocks order. See addons/calendar_time/guides/multi-clock-save-identity.md for identity resolution.
Source: addons/calendar_time/game_time/state/clock_group_serializer.gd
Syntax
class ClockGroupSerializer extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
AgeStateSerializer | Field | `AgeStateSerializer` is preloaded here for use during group serialization. |
TIME_STATE | Field | Time state payload is serialized under this key. |
AGE_STATES | Field | Age states payload is serialized under this key. |
AGE_SERVICE_STATE | Field | Age service state payload is serialized under this key. |
WORLD_AGE_SYSTEM_STATE | Field | World age system state payload is serialized under this key. |
CLOCK_ID | Field | Clock identifier is serialized under this key. |
PERSISTENT_ID | Field | Authored persistent UUID is serialized under this key Present only when the clock's `persistent_id` is non-empty. |
clock_group | Property | The group this serializer aggregates. Must be set before calling to_dict() / from_dict() — fail fast otherwise. |
to_dict | Method | |
from_dict | Method |