pub struct Entity { /* private fields */ }Expand description
A struct representing an entity for an ECS game system.
Implementations§
Source§impl Entity
impl Entity
Source§impl Entity
impl Entity
Sourcepub fn set<'a, T>(&mut self, key: &str, value: T)where
T: IntoValue<'a>,
pub fn set<'a, T>(&mut self, key: &str, value: T)where
T: IntoValue<'a>,
Sets a property of the entity to a given value. This function will trigger events for Observer objects.
§Arguments
key- The name of the property to set.item- The value to set the property to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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