update to entt v3.9.0

This commit is contained in:
2021-12-13 18:42:22 +01:00
parent 494912ce8a
commit 81043264d2
12 changed files with 66 additions and 34 deletions

View File

@ -112,7 +112,11 @@ namespace MM::Services {
ImGui::Text("size: %lu", scene.size());
ImGui::Text("alive: %lu", scene.alive());
size_t orphans = 0;
scene.orphans([&](auto) { orphans++; });
scene.each([&orphans, &scene](auto entity) {
if (scene.orphan(entity)) {
orphans++;
}
});
ImGui::Text("orphans: %lu", orphans);
}
ImGui::End();