Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

World state snapshots with delta compression and relevancy filtering.

Structs§

ClientId
Client identifier for relevancy tracking.
ComponentData
Individual component data stored as a type-tagged byte buffer. Components are identified by a numeric type ID for serialization.
ComponentDelta
Delta for a single component.
EntityDelta
Delta for a single entity between two snapshots.
EntitySnapshot
Snapshot of a single entity’s state at a point in time.
NetEntityId
Strongly-typed entity identifier within the netcode layer.
RelevancyEntry
Priority and relevancy information for a single entity relative to a client.
RelevancyFilter
Per-client relevancy filter that determines which entities should be sent and at what priority/frequency.
RelevancyRegion
A spatial region used for area-of-interest filtering.
SnapshotDelta
Delta between two world snapshots.
SnapshotId
Unique identifier for a snapshot in time.
SnapshotRingBuffer
Ring buffer for storing recent world snapshots. Supports efficient lookup by snapshot ID and tick number.
WorldSnapshot
A complete snapshot of the world at a given tick.

Enums§

DeltaKind
How a component changed between snapshots.

Functions§

compress_quaternion
Smallest-three quaternion compression: store only the 3 smallest components and the index of the largest.
decompress_quaternion
Decompress a quaternion from smallest-three representation.
dequantize_f32
Dequantize back to float.
pack_position
Pack three quantized position components into bytes.
quantize_f32
Quantize a float to a fixed number of bits for bandwidth reduction.
unpack_position
Unpack position from bytes.