| 1001 | } |
| 1002 | |
| 1003 | bool DungeonGeneratorWriter::needsForegroundBiomeMod(Vec2I const& position) { |
| 1004 | if (!m_foregroundMaterial.contains(position)) |
| 1005 | return false; |
| 1006 | if (!isBiomeMaterial(m_foregroundMaterial[position].material)) |
| 1007 | return false; |
| 1008 | Vec2I abovePosition(position.x(), position.y() + 1); |
| 1009 | if (m_foregroundMaterial.contains(abovePosition)) |
| 1010 | if (m_foregroundMaterial[abovePosition].material != EmptyMaterialId) |
| 1011 | return false; |
| 1012 | return true; |
| 1013 | } |
| 1014 | |
| 1015 | bool DungeonGeneratorWriter::needsBackgroundBiomeMod(Vec2I const& position) { |
| 1016 | if (!m_backgroundMaterial.contains(position)) |
no test coverage detected