pub struct EntityFlags {
pub is_pushable: bool,
pub is_attackable: bool,
pub is_pickable: bool,
pub can_be_collided_with: bool,
pub is_pushed_by_fluid: bool,
pub can_freeze: bool,
pub can_be_hit_by_projectile: bool,
pub is_sensitive_to_water: bool,
pub can_breathe_underwater: bool,
pub can_be_seen_as_enemy: bool,
}Expand description
Behavioral flags for entity collision and interaction.
Fields§
§is_pushable: bool§is_attackable: bool§is_pickable: bool§can_be_collided_with: bool§is_pushed_by_fluid: bool§can_freeze: bool§can_be_hit_by_projectile: bool§is_sensitive_to_water: bool§can_breathe_underwater: bool§can_be_seen_as_enemy: boolTrait Implementations§
Source§impl Clone for EntityFlags
impl Clone for EntityFlags
Source§fn clone(&self) -> EntityFlags
fn clone(&self) -> EntityFlags
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 moreimpl Copy for EntityFlags
Source§impl Debug for EntityFlags
impl Debug for EntityFlags
Source§impl PartialEq for EntityFlags
impl PartialEq for EntityFlags
Source§fn eq(&self, other: &EntityFlags) -> bool
fn eq(&self, other: &EntityFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntityFlags
Auto Trait Implementations§
impl Freeze for EntityFlags
impl RefUnwindSafe for EntityFlags
impl Send for EntityFlags
impl Sync for EntityFlags
impl Unpin for EntityFlags
impl UnsafeUnpin for EntityFlags
impl UnwindSafe for EntityFlags
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