| 1475 | } |
| 1476 | |
| 1477 | bool 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 | |
| 1485 | void WorldClient::setTileProtection(DungeonId dungeonId, bool isProtected) { |
| 1486 | if (isProtected) { |
no test coverage detected