Struct naia_shared::EntityProperty
source · pub struct EntityProperty { /* private fields */ }Implementations§
source§impl EntityProperty
impl EntityProperty
pub fn new(mutator_index: u8) -> Self
pub fn new_empty() -> Self
pub fn mirror(&mut self, other: &EntityProperty)
pub fn handle(&self) -> Option<EntityHandle>
pub fn write( &self, writer: &mut dyn BitWrite, converter: &dyn NetEntityHandleConverter )
pub fn bit_length(&self, converter: &dyn NetEntityHandleConverter) -> u32
pub fn new_read( reader: &mut BitReader<'_>, mutator_index: u8, converter: &dyn NetEntityHandleConverter ) -> Result<Self, SerdeErr>
pub fn read_write( reader: &mut BitReader<'_>, writer: &mut BitWriter ) -> Result<(), SerdeErr>
pub fn read( &mut self, reader: &mut BitReader<'_>, converter: &dyn NetEntityHandleConverter ) -> Result<(), SerdeErr>
pub fn equals(&self, other: &EntityProperty) -> bool
pub fn set_mutator(&mut self, mutator: &PropertyMutator)
pub fn get<E: Copy + Eq + Hash>( &self, handler: &dyn EntityHandleConverter<E> ) -> Option<E>
pub fn set<E: Copy + Eq + Hash>( &mut self, handler: &dyn EntityHandleConverter<E>, entity: &E )
Trait Implementations§
source§impl Clone for EntityProperty
impl Clone for EntityProperty
source§fn clone(&self) -> EntityProperty
fn clone(&self) -> EntityProperty
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more