Skip to main content

Module spatial_sync

Module spatial_sync 

Source

Structs§

PlantedAsset
A planted asset representation for the spatial sync protocol. Defines “who-planted-what-where” across a shared world, keyed by spatial index.
SpatialSyncCell
A spatial sync cell keyed by H3/quadtree cell id, holding the merged planted assets.

Functions§

merge_planted_assets
Last-Write-Wins (LWW) conflict resolution for overlapping asset placements. Merges two sets of PlantedAssets, resolving conflicts by asset_id using the Lamport clock. Higher Lamport wins. Deterministic tie-breaking on asset_id string if clocks match.