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

Method sectorFor

source/game/StarTileSectorArray.hpp:170–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169template <typename Tile, unsigned SectorSize>
170auto TileSectorArray<Tile, SectorSize>::sectorFor(Vec2I const& pos) const -> Sector {
171 return m_tileSectors.sectorFor((unsigned)pmod<int>(pos[0], m_worldSize[0]), (unsigned)pos[1]);
172}
173
174template <typename Tile, unsigned SectorSize>
175bool TileSectorArray<Tile, SectorSize>::sectorValid(Sector const& sector) const {

Callers 5

collectLiquidMethod · 0.45
setLiquidMethod · 0.45
queueTileUpdatesMethod · 0.45
sectorForPositionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected