Trait naia_bevy_shared::ComponentAccess
source · [−]pub trait ComponentAccess<P: Protocolize>: Send + Sync {
fn component<'w>(
&self,
world: &'w World,
entity: &Entity
) -> Option<ReplicaDynRefWrapper<'w, P>>;
fn component_mut<'w>(
&self,
world: &'w mut World,
entity: &Entity
) -> Option<ReplicaDynMutWrapper<'w, P>>;
fn remove_component(&self, world: &mut World, entity: &Entity) -> Option<P>;
fn mirror_components(
&self,
world: &mut World,
mutable_entity: &Entity,
immutable_entity: &Entity
);
}