Struct oxygengine::prelude::EntityChanges
source · pub struct EntityChanges {
pub skip_clearing: bool,
/* private fields */
}
Fields§
§skip_clearing: bool
Implementations§
source§impl EntityChanges
impl EntityChanges
pub fn has_changed(&self) -> bool
pub fn entities(&self) -> impl Iterator<Item = Entity>
pub fn spawned(&self) -> impl Iterator<Item = Entity>
pub fn has_spawned(&self, entity: Entity) -> bool
pub fn despawned(&self) -> impl Iterator<Item = Entity>
pub fn has_despawned(&self, entity: Entity) -> bool
pub fn added_component_iter<T>(&self) -> impl Iterator<Item = Entity>where T: 'static,
pub fn added_components( &self, entity: Entity ) -> Option<impl Iterator<Item = TypeId>>
pub fn has_added_component<T>(&self, entity: Entity) -> boolwhere T: 'static,
pub fn removed_component_iter<T>(&self) -> impl Iterator<Item = Entity>where T: 'static,
pub fn removed_components( &self, entity: Entity ) -> Option<impl Iterator<Item = TypeId>>
pub fn has_removed_component<T>(&self, entity: Entity) -> boolwhere T: 'static,
Trait Implementations§
source§impl Debug for EntityChanges
impl Debug for EntityChanges
source§impl Default for EntityChanges
impl Default for EntityChanges
source§fn default() -> EntityChanges
fn default() -> EntityChanges
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for EntityChanges
impl Send for EntityChanges
impl Sync for EntityChanges
impl Unpin for EntityChanges
impl UnwindSafe for EntityChanges
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more