Struct naia_shared::ComponentKinds
source · pub struct ComponentKinds { /* private fields */ }
Expand description
A map to hold all component types
Implementations§
source§impl ComponentKinds
impl ComponentKinds
pub fn new() -> Self
pub fn add_component<C: Replicate>(&mut self)
pub fn read( &self, reader: &mut BitReader<'_>, converter: &dyn LocalEntityAndGlobalEntityConverter ) -> Result<Box<dyn Replicate>, SerdeErr>
pub fn read_create_update( &self, reader: &mut BitReader<'_> ) -> Result<ComponentUpdate, SerdeErr>
pub fn split_update( &self, converter: &dyn LocalEntityAndGlobalEntityConverter, component_kind: &ComponentKind, update: ComponentUpdate ) -> Result<(Option<Vec<(RemoteEntity, ComponentFieldUpdate)>>, Option<ComponentUpdate>), SerdeErr>
pub fn kind_to_name(&self, component_kind: &ComponentKind) -> String
Auto Trait Implementations§
impl !RefUnwindSafe for ComponentKinds
impl Send for ComponentKinds
impl Sync for ComponentKinds
impl Unpin for ComponentKinds
impl !UnwindSafe for ComponentKinds
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