MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / DestroyAll

Method DestroyAll

src/plugin/kernel/src/AFCKernelModule.cpp:316–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool AFCKernelModule::DestroyAll()
317{
318 for (auto& iter : objects_)
319 {
320 auto& pEntity = iter.second;
321 if (pEntity->GetParentContainer() != nullptr)
322 {
323 continue;
324 }
325
326 delete_list_.push_back(iter.second->GetID());
327 }
328
329 // run another frame
330 Update();
331
332 return true;
333}
334
335bool AFCKernelModule::DestroyEntity(const AFGUID& self)
336{

Callers 1

PreShutMethod · 0.80

Calls 2

GetParentContainerMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected