MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / UpdateEntitiesSpatialIndex

Method UpdateEntitiesSpatialIndex

src/openrct2/entity/EntityRegistry.cpp:413–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 2

gameStateTickFunction · 0.80
gameStateUpdateLogicFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected