registry: create no longer accepts a list of default constructible types to assign to entities

This commit is contained in:
Michele Caini
2020-01-06 23:46:58 +01:00
parent 2a863ee851
commit 469276b8be
8 changed files with 203 additions and 290 deletions

View File

@@ -114,7 +114,9 @@ TEST(Benchmark, ConstructManyWithComponents) {
std::cout << "Constructing 1000000 entities at once with components" << std::endl;
timer timer;
registry.create<position, velocity>(entities.begin(), entities.end());
registry.create(entities.begin(), entities.end());
registry.assign<position>(entities.begin(), entities.end());
registry.assign<velocity>(entities.begin(), entities.end());
timer.elapsed();
}