pub struct EntityPose2D { /* private fields */ }Expand description
Immutable 2D entity pose captured for render-time interpolation with teleport and spawn guards.
Implementations§
Source§impl EntityPose2D
impl EntityPose2D
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_transform(&self) -> EntityTransform
pub fn get_mut_transform(&mut self) -> &mut EntityTransform
pub fn set_transform(&mut self, val: EntityTransform) -> &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
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
Source§impl EntityPose2D
impl EntityPose2D
Trait Implementations§
Source§impl Clone for EntityPose2D
impl Clone for EntityPose2D
impl Copy for EntityPose2D
Source§impl Debug for EntityPose2D
impl Debug for EntityPose2D
Source§impl Default for EntityPose2D
impl Default for EntityPose2D
Source§impl PartialEq for EntityPose2D
impl PartialEq for EntityPose2D
impl StructuralPartialEq for EntityPose2D
Auto Trait Implementations§
impl Forget for EntityPose2D
impl Freeze for EntityPose2D
impl Move for EntityPose2D
impl RefUnwindSafe for EntityPose2D
impl Send for EntityPose2D
impl Sync for EntityPose2D
impl Unpin for EntityPose2D
impl UnsafeUnpin for EntityPose2D
impl UnwindSafe for EntityPose2D
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