Struct naia_shared::RemoteWorldManager
source · pub struct RemoteWorldManager<E: Copy + Eq + Hash + Send + Sync> {
pub entity_waitlist: EntityWaitlist,
/* private fields */
}
Fields§
§entity_waitlist: EntityWaitlist
Implementations§
source§impl<E: Copy + Eq + Hash + Send + Sync> RemoteWorldManager<E>
impl<E: Copy + Eq + Hash + Send + Sync> RemoteWorldManager<E>
pub fn new() -> Self
pub fn on_entity_channel_opened(&mut self, remote_entity: &RemoteEntity)
pub fn on_entity_channel_closing(&mut self, remote_entity: &RemoteEntity)
pub fn process_world_events<W: WorldMutType<E>>( &mut self, global_world_manager: &dyn GlobalWorldManagerType<E>, local_world_manager: &mut LocalWorldManager<E>, component_kinds: &ComponentKinds, world: &mut W, world_events: RemoteWorldEvents<E> ) -> Vec<EntityEvent<E>>
sourcepub fn process_actions<W: WorldMutType<E>>(
&mut self,
global_world_manager: &dyn GlobalWorldManagerType<E>,
local_world_manager: &mut LocalWorldManager<E>,
world: &mut W,
incoming_actions: Vec<EntityAction<RemoteEntity>>,
incoming_components: HashMap<(RemoteEntity, ComponentKind), Box<dyn Replicate>>
)
pub fn process_actions<W: WorldMutType<E>>( &mut self, global_world_manager: &dyn GlobalWorldManagerType<E>, local_world_manager: &mut LocalWorldManager<E>, world: &mut W, incoming_actions: Vec<EntityAction<RemoteEntity>>, incoming_components: HashMap<(RemoteEntity, ComponentKind), Box<dyn Replicate>> )
Process incoming Entity actions.
- Emits client events corresponding to any
EntityAction
received Store
sourcepub fn process_updates<W: WorldMutType<E>>(
&mut self,
global_world_manager: &dyn GlobalWorldManagerType<E>,
local_world_manager: &mut LocalWorldManager<E>,
component_kinds: &ComponentKinds,
world: &mut W,
incoming_updates: Vec<(Tick, E, ComponentUpdate)>
)
pub fn process_updates<W: WorldMutType<E>>( &mut self, global_world_manager: &dyn GlobalWorldManagerType<E>, local_world_manager: &mut LocalWorldManager<E>, component_kinds: &ComponentKinds, world: &mut W, incoming_updates: Vec<(Tick, E, ComponentUpdate)> )
Process incoming Entity updates.
- Emits client events corresponding to any
EntityAction
received Store
Auto Trait Implementations§
impl<E> !RefUnwindSafe for RemoteWorldManager<E>
impl<E> Send for RemoteWorldManager<E>
impl<E> Sync for RemoteWorldManager<E>
impl<E> Unpin for RemoteWorldManager<E>where
E: Unpin,
impl<E> !UnwindSafe for RemoteWorldManager<E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more