pub fn clone_entity_components(&self, entity: Entity) -> Option<AnyMap> {
        if self.entities.is_live(entity) {
            let mut components = AnyMap::new();
            for (_, cm) in self.components.iter() {
                cm.clone_entity_into(entity.index(), &mut components);
            }
            Some(components)
        } else {
            None
        }
    }
/// Clones the entire set of an entity's components
/// Locks all components for reading
Clones the entire set of an entity's components
Locks all components for reading
Clones the entire set of an entity ' s components Locks all components for reading
pub fn clone_entity_components(&self, entity: Entity) -> Option<AnyMap> {
        if self.entities.is_live(entity) {
            let mut components = AnyMap::new();
            for (_, cm) in self.components.iter() {
                cm.clone_entity_into(entity.index(), &mut components);
            }
            Some(components)
        } else {
            None
        }
    }
pub fn clone_entity_components ( & self , entity : Entity ) -> Option < AnyMap > { if self . entities . is_live ( entity ) { let mut components = AnyMap :: new ( ) ; for ( _ , cm ) in self . components . iter ( ) { cm . clone_entity_into ( entity . index ( ) , & mut components ) ; } Some ( components ) } else { None } }
Clones the entire set of an entity's components
Locks all components for reading
Clones the entire set of an entity ' s components Locks all components for reading
&self
entity
Entity
&self
entity
Entity