mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-07-04 08:36:45 +02:00
update to entt v3.9.0
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user