MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / updateSpatialIndex

Function updateSpatialIndex

src/OpenLoco/src/Entities/EntityManager.cpp:184–190  ·  view source on GitHub ↗

0x0046FC57

Source from the content-addressed store, hash-verified

182
183 // 0x0046FC57
184 void updateSpatialIndex()
185 {
186 for (auto& ent : entities())
187 {
188 ent.moveTo(ent.position);
189 }
190 }
191
192 static bool removeFromSpatialIndex(EntityBase& entity, const size_t index)
193 {

Callers 3

viewportRotateMethod · 0.85
importSaveToGameStateFunction · 0.85
startFunction · 0.85

Calls 2

entitiesFunction · 0.85
moveToMethod · 0.80

Tested by

no test coverage detected