Skip to content

Delta

Defined in: packages/engine/src/gameplay/replication/delta.ts:10

What changed between two snapshots, keyed as the dump keys them.

Property Type Description
changed Record<string, Record<string, unknown>> Each entity’s traits that differ: of a record, the fields that differ; of anything else, the whole value; null where the trait left the entity. A new entity carries every trait.
hash number The later snapshot’s hash: what the world should dump once this is applied.
removed string[] The entities the later snapshot no longer holds.