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

Method finishPart

source/game/StarDungeonGenerator.cpp:1114–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

buildDungeonMethod · 0.80

Calls 7

xMinMethod · 0.80
xMaxMethod · 0.80
setMinMethod · 0.80
setMaxMethod · 0.80
appendMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected