| 411 | } |
| 412 | |
| 413 | void EntityRegistry::UpdateEntitiesSpatialIndex() |
| 414 | { |
| 415 | for (auto& entityList : gEntityLists) |
| 416 | { |
| 417 | for (auto& entityId : entityList) |
| 418 | { |
| 419 | auto* entity = TryGetEntity(entityId); |
| 420 | if (entity != nullptr && entity->type != EntityType::null) |
| 421 | { |
| 422 | UpdateEntitySpatialIndex(*entity); |
| 423 | } |
| 424 | } |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | /** |
| 429 | * Frees any dynamically attached memory to the entity, such as peep name. |
no outgoing calls
no test coverage detected