Table of Contents

Namespace Chronicler

Chronicler provides deterministic, transport-neutral state transfer for .NET runtimes that own their object graphs. Types declare names, defaults, order, and ownership through IRecordable.RecordData(...); the built-in transports apply that schema to JSON or MemoryPack and populate existing runtime shells.

Use RecordValues for leaf data, the deep helpers for owned nested state, and RecordLinks for external or runtime-owned identity. The context and link registry are shared by transports and hashes. IStateBacked<TState> exposes canonical helper state independently of a transport.

Use Chronicler.Serialization for JSON and MemoryPack transports, state-backed JSON converters, and payload editing. Use Chronicler.Hashing for hash values, primitive writing, and ChronicleHashSerializer, which walks the same recording schema to produce replay and conformance signals.

DefaultSaver provides explicit save/apply lifecycle hooks for host integrations, such as settings and configuration edited in a game engine. The host invokes each phase; Chronicler takes no engine dependency.

The Chronicler.Timing namespace provides immutable timestamps and durations with 64-bit whole seconds and 32 binary fractional bits, plus a host-advanced ChronicleClock. RecordChronicleTime records the values explicitly; clock population validates all state before mutation. Hosts retain simulation-loop and reset/restore lifetime ownership.

Chronicler is designed for the deterministic Lockstep Simulation Framework ecosystem, including SwiftCollections, GridForge, and Gravitas.

Classes

ChronicleContext

Holds link registrations and pending link assignments for a recording session.

ChronicleLinkRegistry

Maps stable IDs to host-owned values within a recording session.

DefaultSaver

Provides a reusable save/apply lifecycle base for explicit state transfer helpers.

RecordChronicleTime

Records exact time values through a versioned, transport-neutral component schema.

RecordDeep

Helper for reading and writing nested recordable objects during a chronicler pass.

RecordDeepStruct

Helper for reading and writing nested recordable structs during a chronicler pass.

RecordLinks

Records stable IDs for links to host-owned values.

RecordNullableDeep

Helper for reading and writing optional nested recordable structs during a chronicler pass.

RecordValues

Helper for reading and writing leaf values during a chronicler pass.

Interfaces

IChronicler

Defines a recording pass for values, owned state, and stable links.

IRecordLinkResolver<T>

Maps host-owned link values to stable IDs and resolves those IDs during loading.

IRecordable

Defines a type that can record its serializable state through a chronicler pass.

IStateBacked<TState>

Exposes a canonical serializable state value for an object.

Enums

RecordLinkResolveMode

Controls when a recorded link must resolve during population.

SerializationMode

Describes whether a chronicler pass is saving values out or loading values in.