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

Method isTileProtected

source/game/StarWorldClient.cpp:1477–1483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1475}
1476
1477bool WorldClient::isTileProtected(Vec2I const& pos) const {
1478 if (!inWorld())
1479 return true;
1480
1481 auto const& tile = m_tileArray->tile(pos);
1482 return m_protectedDungeonIds.contains(tile.dungeonId);
1483}
1484
1485void WorldClient::setTileProtection(DungeonId dungeonId, bool isProtected) {
1486 if (isProtected) {

Callers 6

moveBlockMethod · 0.45
placementValidMethod · 0.45
updateRunningMethod · 0.45
renderWireMethod · 0.45
renderImplMethod · 0.45
swingMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected