pub struct BaseEntity {
pub entity_type: &'static EntityType,
pub uuid: Uuid,
pub pos: EntityPos,
/* private fields */
}Expand description
Base entity component, present in all entities of a level, must not be removed.
Fields§
§entity_type: &'static EntityType§uuid: Uuid§pos: EntityPosImplementations§
Source§impl BaseEntity
impl BaseEntity
pub fn new(entity_type: &'static EntityType, uuid: Uuid, pos: EntityPos) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for BaseEntity
impl !UnwindSafe for BaseEntity
impl Freeze for BaseEntity
impl Send for BaseEntity
impl Sync for BaseEntity
impl Unpin for BaseEntity
impl UnsafeUnpin for BaseEntity
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