Module veloren_common_net::sync::net_sync

source ·
Expand description

Types of syncing:

  • synced from any entity (within range)
  • synced only from the client’s entity

Types of updating

  • Plain copy of the new component state
  • (unimplemented) Diff to update component, two variants
    • Keep a full copy of the component and generate diff from that
    • Intercept changes to the component (no need to compute diff or keep a full copy)

NOTE: rapidly updated components like Pos/Vel/Ori are not covered here

Enums§

  • Whether a component is synced to the client for any entity or for just the client’s own entity.

Traits§

  • Trait that must be implemented for most components that are synced over the network.