Class DeltaDiffer
- Namespace
- KeenEyes.Serialization
- Assembly
- KeenEyes.Core.dll
Computes delta differences between a world's current state and a baseline snapshot.
public static class DeltaDiffer
- Inheritance
-
DeltaDiffer
- Inherited Members
Remarks
The DeltaDiffer creates efficient incremental saves by comparing the current world state against a previously saved baseline. Only entities and components that have changed are included in the delta, resulting in significantly smaller save files.
Methods
CreateDelta(World, WorldSnapshot, IComponentSerializer, string, int)
Creates a delta snapshot by comparing the current world state to a baseline.
public static DeltaSnapshot CreateDelta(World world, WorldSnapshot baseline, IComponentSerializer serializer, string baselineSlotName, int sequenceNumber = 1)
Parameters
worldWorldThe current world state.
baselineWorldSnapshotThe baseline snapshot to compare against.
serializerIComponentSerializerThe component serializer for AOT-compatible serialization.
baselineSlotNamestringThe slot name of the baseline save.
sequenceNumberintThe sequence number for this delta.
Returns
- DeltaSnapshot
A delta snapshot containing only the changes since the baseline.
Exceptions
- ArgumentNullException
Thrown when any parameter is null.