pub fn create_entity(&mut self) -> EntityId {
        let new_id = EntityId(self.ids);
        self.ids += 1;
        self.data.insert(new_id, Default::default());
        new_id
    }
/// Create a new entity in the ECS without components and return its ID.
Create a new entity in the ECS without components and return its ID.
Create a new entity in the ECS without components and return its ID .
pub fn create_entity(&mut self) -> EntityId {
        let new_id = EntityId(self.ids);
        self.ids += 1;
        self.data.insert(new_id, Default::default());
        new_id
    }
pub fn create_entity ( & mut self ) -> EntityId { let new_id = EntityId ( self . ids ) ; self . ids += 1 ; self . data . insert ( new_id , Default :: default ( ) ) ; new_id }
Create a new entity in the ECS without components and return its ID.
Create a new entity in the ECS without components and return its ID .
&mut self
&mut self