MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / forEachEntity

Method forEachEntity

source/game/StarEntityMap.cpp:186–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void EntityMap::forEachEntity(RectF const& boundBox, EntityCallback const& callback) const {
187 m_spatialMap.forEach(m_geometry.splitRect(boundBox), callback);
188}
189
190void EntityMap::forEachEntityLine(Vec2F const& begin, Vec2F const& end, EntityCallback const& callback) const {
191 return m_spatialMap.forEach(m_geometry.splitRect(RectF::boundBoxOf(begin, end)), [&](EntityPtr const& entity) {

Callers 6

queryHitMethod · 0.45
tickMasterMethod · 0.45
tickMethod · 0.45
loadNetworkMethod · 0.45
entitiesLoungingMethod · 0.45
mainFunction · 0.45

Calls 2

forEachMethod · 0.45
splitRectMethod · 0.45

Tested by

no test coverage detected