Struct oxygengine_core::ecs::life_cycle::EntityChanges
source · [−]pub struct EntityChanges {
pub skip_clearing: bool,
/* private fields */
}
Fields
skip_clearing: bool
Implementations
sourceimpl 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: 'static>(
&self
) -> impl Iterator<Item = Entity> + '_
pub fn added_components(
&self,
entity: Entity
) -> Option<impl Iterator<Item = TypeId> + '_>
pub fn has_added_component<T: 'static>(&self, entity: Entity) -> bool
pub fn removed_component_iter<T: 'static>(
&self
) -> impl Iterator<Item = Entity> + '_
pub fn removed_components(
&self,
entity: Entity
) -> Option<impl Iterator<Item = TypeId> + '_>
pub fn has_removed_component<T: 'static>(&self, entity: Entity) -> bool
Trait Implementations
sourceimpl Debug for EntityChanges
impl Debug for EntityChanges
sourceimpl Default for EntityChanges
impl Default for EntityChanges
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more