Deterministic state transfer and simulation timing for .NET runtimes that own their objects and their schemas.
Chronicler helps .NET games and simulations save, restore, and verify state. You define what goes into a snapshot in C# and load it back into the objects your application already owns.
- Keep one schema in code. Use it for JSON, MemoryPack, and deterministic hashes that help spot replay divergence.
- Restore an existing world. Populate owned objects in place and reconnect references through stable IDs.
- Keep simulation time exact. Advance a recordable clock and resume it from a snapshot.
dotnet add package Chronicler.Coreusing System;
using Chronicler;
using Chronicler.Serialization;
PlayerSnapshot player = new() { Health = 72 };
string snapshot = JsonRecordSerializer.Serialize(player);
player.Health = 10;
JsonRecordSerializer.Populate(player, snapshot);
Console.WriteLine(player.Health); // 72
sealed class PlayerSnapshot : IRecordable
{
public int Health = 100;
public void RecordData(IChronicler chronicler)
=> RecordValues.Look(chronicler, ref Health, "health", 100);
}Restore a snapshot with nested state · Browse the guides · API reference
The packages target netstandard2.1 and net10.0. Choose from the
package family for JSON
and MemoryPack, a JSON-only Lean build, standalone diagnostics, or MemoryPack
compatibility attributes for Lean assemblies.