Right now, entities created with EntityManager::create() without components are added without knowledge of its components. A way to improve this would be to create a temporary entity, and add it to the EntityManager once the Entity goes out of scope (because then we know what components it has). The problem with this is that it would be "id less" until it goes out of scope.
Right now, entities created with EntityManager::create() without components are added without knowledge of its components. A way to improve this would be to create a temporary entity, and add it to the EntityManager once the Entity goes out of scope (because then we know what components it has). The problem with this is that it would be "id less" until it goes out of scope.