Trait veloren_common_net::sync::net_sync::NetSync

source ·
pub trait NetSync: Component + Clone + Send + Sync
where Self::Storage: Tracked,
{ const SYNC_FROM: SyncFrom; // Provided methods fn pre_insert(&mut self, world: &World) { ... } fn pre_modify(&mut self, world: &World) { ... } }
Expand description

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

Required Associated Constants§

source

const SYNC_FROM: SyncFrom

Determines what for entities this component is synced to the client.

For example, SyncFrom::ClientEntity can be used to only sync the components for the client’s own entity.

Provided Methods§

source

fn pre_insert(&mut self, world: &World)

Allows making modifications before the synced component is inserted on the client.

source

fn pre_modify(&mut self, world: &World)

Allows making modifications before the synced component is overwritten with this version on the client.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl NetSync for Alignment

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Body

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for CharacterState

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Collider

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Object

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Stance

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for ActiveAbilities

source§

const SYNC_FROM: SyncFrom = SyncFrom::ClientEntity

source§

impl NetSync for Admin

source§

const SYNC_FROM: SyncFrom = SyncFrom::ClientEntity

source§

impl NetSync for Auras

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Beam

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Buffs

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for CanBuild

source§

const SYNC_FROM: SyncFrom = SyncFrom::ClientEntity

source§

impl NetSync for CharacterActivity

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Combo

source§

const SYNC_FROM: SyncFrom = SyncFrom::ClientEntity

source§

impl NetSync for Density

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Energy

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Group

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Hardcore

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Heads

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Health

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Immovable

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Inventory

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for LightEmitter

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for LootOwner

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Mass

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for PickupItem

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Poise

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Scale

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Shockwave

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for SkillSet

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Stats

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for Sticky

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for IsFollower

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for IsLeader

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for IsMount

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for IsRider

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

source§

impl NetSync for IsVolumeRider

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity