| 290 | } |
| 291 | |
| 292 | WorldLayout WorldLayout::buildFloatingDungeonLayout(FloatingDungeonWorldParameters const& floatingDungeonParameters, uint64_t seed) { |
| 293 | auto assets = Root::singleton().assets(); |
| 294 | auto biomeDatabase = Root::singleton().biomeDatabase(); |
| 295 | |
| 296 | RandomSource randSource(seed); |
| 297 | |
| 298 | WorldLayout layout; |
| 299 | layout.m_worldSize = floatingDungeonParameters.worldSize; |
| 300 | |
| 301 | RegionParams biomeRegion{ |
| 302 | (int)floatingDungeonParameters.dungeonSurfaceHeight, |
| 303 | floatingDungeonParameters.threatLevel, |
| 304 | floatingDungeonParameters.biome, |
| 305 | {}, {}, {}, {}, {}, {}, |
| 306 | {EmptyLiquidId, 0.0f, EmptyLiquidId, 0, false, false} |
| 307 | }; |
| 308 | |
| 309 | layout.addLayer(seed, 0, biomeRegion); |
| 310 | if (floatingDungeonParameters.biome) |
| 311 | biomeDatabase->biomeSkyColoring(*floatingDungeonParameters.biome, seed); |
| 312 | else |
| 313 | layout.finalize(Color::Black); |
| 314 | |
| 315 | return layout; |
| 316 | } |
| 317 | |
| 318 | WorldLayout::WorldLayout() : m_regionBlending(0.0f) {} |
| 319 |
nothing calls this directly
no test coverage detected