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

Method sectorForPosition

source/game/StarWorldStorage.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118Maybe<WorldStorage::Sector> WorldStorage::sectorForPosition(Vec2I const& position) const {
119 auto s = m_tileArray->sectorFor(position);
120 if (m_tileArray->sectorValid(s))
121 return s;
122 return {};
123}
124
125List<WorldStorage::Sector> WorldStorage::sectorsForRegion(RectI const& region) const {
126 return m_tileArray->validSectorsFor(region);

Callers 1

loadNetworkMethod · 0.80

Calls 2

sectorForMethod · 0.45
sectorValidMethod · 0.45

Tested by

no test coverage detected