Skip to content

Class

TimeSnapshotSerializer

Generated GDScript class reference for CalendarTime.TimeSnapshotSerializer.

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

TimeSnapshotSerializer: stateless service that serializes one GameClock. Wired by GameClock; most users call clock.to_dict() / clock.from_dict() instead. Uses TimeSnapshot as the save-format DTO, which preserves the serialization_id / LEGACY_ID migration machinery: pre-2.0 saves with game_seconds or legacy game_ticks auto-migrate on load.

Source: addons/calendar_time/data/time_snapshot_serializer.gd

Syntax

class TimeSnapshotSerializer extends RefCounted

Members

NameKindSummary
TIME_STATEFieldTime state payload is serialized under this key.
clockPropertyWeakly held clock whose state this serializer reads and restores.
to_dictMethod
from_dictMethod