Table of Contents

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

world World

The current world state.

baseline WorldSnapshot

The baseline snapshot to compare against.

serializer IComponentSerializer

The component serializer for AOT-compatible serialization.

baselineSlotName string

The slot name of the baseline save.

sequenceNumber int

The 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.