Move world on unordered_map and object_ptr

This commit is contained in:
Jiga228
2025-10-18 14:26:22 +07:00
parent bed233e56c
commit 0ec86e3de8
8 changed files with 99 additions and 39 deletions
+7
View File
@@ -21,6 +21,13 @@ void TestWorld::Tick(double delta_time)
if (time >= 10.0)
{
Message("TestWorld: Time out");
std::vector<UType::object_ptr<Mesh>> meshes = GetActorsByClass<Mesh>();
if (!meshes.empty())
{
DestroyActor(static_cast<UType::object_ptr<Actor>>(meshes[0]));
time = 7.0;
return;
}
GetGameInstance().quit();
}
}