| 1112 | } |
| 1113 | |
| 1114 | void DungeonGeneratorWriter::finishPart() { |
| 1115 | for (auto& entries : m_openLocalWires) |
| 1116 | m_localWires.append(entries.second); |
| 1117 | m_openLocalWires.clear(); |
| 1118 | |
| 1119 | if (m_currentBounds.xMin() > m_currentBounds.xMax()) |
| 1120 | return; |
| 1121 | m_boundingBoxes.push_back(m_currentBounds); |
| 1122 | m_currentBounds.setMin(Vec2I{std::numeric_limits<int32_t>::max(), std::numeric_limits<int32_t>::max()}); |
| 1123 | m_currentBounds.setMax(Vec2I{std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::min()}); |
| 1124 | } |
| 1125 | |
| 1126 | void DungeonGeneratorWriter::flushLiquid() { |
| 1127 | // For each liquid type, find each contiguous region of liquid, then |