pub struct EntityColdMeta { /* private fields */ }Expand description
Cold entity lifecycle and gameplay metadata split out of hot transform/velocity SoA streams.
Implementations§
Source§impl EntityColdMeta
impl EntityColdMeta
pub fn get_id(&self) -> EntityId
pub fn get_mut_id(&mut self) -> &mut EntityId
pub fn set_id(&mut self, val: EntityId) -> &mut Self
pub fn get_alive(&self) -> bool
pub fn get_mut_alive(&mut self) -> &mut bool
pub fn set_alive(&mut self, val: bool) -> &mut Self
pub fn get_tag(&self) -> EntityTag
pub fn get_mut_tag(&mut self) -> &mut EntityTag
pub fn set_tag(&mut self, val: EntityTag) -> &mut Self
pub fn get_health(&self) -> f32
pub fn get_mut_health(&mut self) -> &mut f32
pub fn set_health(&mut self, val: f32) -> &mut Self
pub fn get_max_health(&self) -> f32
pub fn get_mut_max_health(&mut self) -> &mut f32
pub fn set_max_health(&mut self, val: f32) -> &mut Self
pub fn get_mut_ttl_secs(&mut self) -> &mut Option<f32>
pub fn set_ttl_secs(&mut self, val: Option<f32>) -> &mut Self
pub fn get_user_data(&self) -> u64
pub fn get_mut_user_data(&mut self) -> &mut u64
pub fn set_user_data(&mut self, val: u64) -> &mut Self
pub fn get_teleport_epoch(&self) -> u32
pub fn get_mut_teleport_epoch(&mut self) -> &mut u32
pub fn set_teleport_epoch(&mut self, val: u32) -> &mut Self
pub fn get_spawn_tick(&self) -> u64
pub fn get_mut_spawn_tick(&mut self) -> &mut u64
pub fn set_spawn_tick(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for EntityColdMeta
impl Clone for EntityColdMeta
impl Copy for EntityColdMeta
Source§impl Debug for EntityColdMeta
impl Debug for EntityColdMeta
Source§impl PartialEq for EntityColdMeta
impl PartialEq for EntityColdMeta
impl StructuralPartialEq for EntityColdMeta
Auto Trait Implementations§
impl Forget for EntityColdMeta
impl Freeze for EntityColdMeta
impl Move for EntityColdMeta
impl RefUnwindSafe for EntityColdMeta
impl Send for EntityColdMeta
impl Sync for EntityColdMeta
impl Unpin for EntityColdMeta
impl UnsafeUnpin for EntityColdMeta
impl UnwindSafe for EntityColdMeta
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