pub fn remove_entity(&mut self, entity: Entity) -> Option<AnyMap> {
        if self.entities.deallocate(entity) {
            let mut components = AnyMap::new();
            for (_, cm) in self.components.iter_mut() {
                cm.remove_entity_into(entity.index(), &mut components);
            }
            Some(components)
        } else {
            None
        }
    }
/// Does nothing and returns None if the entity is already dead.
Does nothing and returns None if the entity is already dead.
Does nothing and returns None if the entity is already dead .
pub fn remove_entity(&mut self, entity: Entity) -> Option<AnyMap> {
        if self.entities.deallocate(entity) {
            let mut components = AnyMap::new();
            for (_, cm) in self.components.iter_mut() {
                cm.remove_entity_into(entity.index(), &mut components);
            }
            Some(components)
        } else {
            None
        }
    }
pub fn remove_entity ( & mut self , entity : Entity ) -> Option < AnyMap > { if self . entities . deallocate ( entity ) { let mut components = AnyMap :: new ( ) ; for ( _ , cm ) in self . components . iter_mut ( ) { cm . remove_entity_into ( entity . index ( ) , & mut components ) ; } Some ( components ) } else { None } }
Does nothing and returns None if the entity is already dead.
Does nothing and returns None if the entity is already dead .
&mut self
entity
Entity
&mut self
entity
Entity