Core/EnttWorld: Add GetAliveEntityCount method

This commit is contained in:
SirLynix
2023-07-27 15:09:51 +02:00
parent a101f7c71f
commit d7cc1a8151
6 changed files with 10 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ int main()
if (secondClock.RestartIfOver(Nz::Time::Second()))
{
window.SetTitle(windowTitle + " - " + Nz::NumberToString(fps) + " FPS" + " - " + Nz::NumberToString(world.GetRegistry().alive()) + " entities");
window.SetTitle(windowTitle + " - " + Nz::NumberToString(fps) + " FPS" + " - " + Nz::NumberToString(world.GetAliveEntityCount()) + " entities");
fps = 0;
}
});