pub struct MapEntity<T: Entity> {
pub id: Integer,
pub x: Float,
pub y: Float,
pub width: Option<Integer>,
pub height: Option<Integer>,
pub origin_x: Float,
pub origin_y: Float,
pub entity: T,
}Expand description
The full struct of an Entity implementaiton
These fields are on every entity element and are useful even when we cannot resolve the entity itself
Fields§
§id: Integer§x: Float§y: Float§width: Option<Integer>§height: Option<Integer>§origin_x: Float§origin_y: Float§entity: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MapEntity<T>where
T: Freeze,
impl<T> RefUnwindSafe for MapEntity<T>where
T: RefUnwindSafe,
impl<T> Send for MapEntity<T>where
T: Send,
impl<T> Sync for MapEntity<T>where
T: Sync,
impl<T> Unpin for MapEntity<T>where
T: Unpin,
impl<T> UnwindSafe for MapEntity<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more