| 314 | } |
| 315 | |
| 316 | bool 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 | |
| 335 | bool AFCKernelModule::DestroyEntity(const AFGUID& self) |
| 336 | { |
no test coverage detected