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

Method isFreeSpace

source/game/StarWorldGeneration.cpp:580–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580bool SpawnerWorld::isFreeSpace(RectF const& area) const {
581 return !m_worldServer->polyCollision(PolyF(area));
582}
583
584bool SpawnerWorld::isBackgroundEmpty(Vec2I const& pos) const {
585 return m_worldServer->getServerTile(pos).background == EmptyMaterialId;

Callers 1

adjustSpawnRegionMethod · 0.80

Calls 1

polyCollisionMethod · 0.45

Tested by

no test coverage detected