Struct naia_shared::RemoteWorldManager
source · pub struct RemoteWorldManager { /* private fields */ }Implementations§
source§impl RemoteWorldManager
impl RemoteWorldManager
pub fn new() -> Self
pub fn read_world_events<E: Copy + Eq + Hash, W: WorldMutType<E>>( &mut self, converter: &dyn EntityHandleConverter<E>, local_world_manager: &mut LocalWorldManager<E>, protocol: &Protocol, world: &mut W, tick: Tick, reader: &mut BitReader<'_> ) -> Result<Vec<EntityEvent<E>>, SerdeErr>
sourcepub fn read_actions<E: Copy + Eq + Hash, W: WorldMutType<E>>(
&mut self,
handle_converter: &dyn EntityHandleConverter<E>,
local_world_manager: &mut LocalWorldManager<E>,
component_kinds: &ComponentKinds,
world: &mut W,
reader: &mut BitReader<'_>,
events: &mut Vec<EntityEvent<E>>
) -> Result<(), SerdeErr>
pub fn read_actions<E: Copy + Eq + Hash, W: WorldMutType<E>>( &mut self, handle_converter: &dyn EntityHandleConverter<E>, local_world_manager: &mut LocalWorldManager<E>, component_kinds: &ComponentKinds, world: &mut W, reader: &mut BitReader<'_>, events: &mut Vec<EntityEvent<E>> ) -> Result<(), SerdeErr>
Read and process incoming actions.
- Emits client events corresponding to any
EntityActionreceived Store
sourcepub fn read_updates<E: Copy + Eq + Hash, W: WorldMutType<E>>(
&mut self,
converter: &dyn EntityHandleConverter<E>,
local_world_manager: &LocalWorldManager<E>,
component_kinds: &ComponentKinds,
world: &mut W,
server_tick: Tick,
reader: &mut BitReader<'_>,
events: &mut Vec<EntityEvent<E>>
) -> Result<(), SerdeErr>
pub fn read_updates<E: Copy + Eq + Hash, W: WorldMutType<E>>( &mut self, converter: &dyn EntityHandleConverter<E>, local_world_manager: &LocalWorldManager<E>, component_kinds: &ComponentKinds, world: &mut W, server_tick: Tick, reader: &mut BitReader<'_>, events: &mut Vec<EntityEvent<E>> ) -> Result<(), SerdeErr>
Read component updates from raw bits