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

Function insertToSpatialIndex

src/OpenLoco/src/Entities/EntityManager.cpp:156–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 static void insertToSpatialIndex(EntityBase& entity, const size_t newIndex)
157 {
158 entity.nextQuadrantId = _entitySpatialIndex[newIndex];
159 _entitySpatialIndex[newIndex] = entity.id;
160 }
161
162 static void insertToSpatialIndex(EntityBase& entity)
163 {

Callers 3

resetSpatialIndexFunction · 0.85
moveSpatialEntryFunction · 0.85
createEntityFunction · 0.85

Calls 1

getSpatialIndexOffsetFunction · 0.85

Tested by

no test coverage detected