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

Function firstQuadrantId

src/OpenLoco/src/Entities/EntityManager.cpp:150–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 EntityId firstQuadrantId(const World::Pos2& loc)
151 {
152 auto index = getSpatialIndexOffset(loc);
153 return _entitySpatialIndex[index];
154 }
155
156 static void insertToSpatialIndex(EntityBase& entity, const size_t newIndex)
157 {

Callers 1

EntityTileListMethod · 0.85

Calls 1

getSpatialIndexOffsetFunction · 0.85

Tested by

no test coverage detected