pub struct EntityView {
pub alive: bool,
pub rect: Option<MapRect>,
pub use_points: Vec<[f32; 3]>,
pub has_interact: bool,
pub position: [f32; 3],
pub has_model: bool,
pub happiness: Option<i32>,
}Expand description
What activities need to know about one entity.
Fields§
§alive: boolWhether it is still in the world.
rect: Option<MapRect>Has a MapComponent: its rectangle.
use_points: Vec<[f32; 3]>InteractComponent “use” points in world space (category 0).
has_interact: boolWhether it has an InteractComponent.
position: [f32; 3]The position.
has_model: boolWhether it has a model.
happiness: Option<i32>For a building where citizens may loiter (a happiness component): the description’s loiter padding.
Trait Implementations§
Source§impl Clone for EntityView
impl Clone for EntityView
Source§fn clone(&self) -> EntityView
fn clone(&self) -> EntityView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityView
impl Debug for EntityView
Source§impl Default for EntityView
impl Default for EntityView
Source§fn default() -> EntityView
fn default() -> EntityView
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EntityView
impl RefUnwindSafe for EntityView
impl Send for EntityView
impl Sync for EntityView
impl Unpin for EntityView
impl UnsafeUnpin for EntityView
impl UnwindSafe for EntityView
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