0x004624F0
| 51 | |
| 52 | // 0x004624F0 |
| 53 | static void generateHeightMap(const Scenario::Options& options, HeightMap& heightMap) |
| 54 | { |
| 55 | if (options.generator == Scenario::LandGeneratorType::Original) |
| 56 | { |
| 57 | OriginalTerrainGenerator generator; |
| 58 | generator.generate(options, heightMap); |
| 59 | } |
| 60 | else if (options.generator == Scenario::LandGeneratorType::Simplex) |
| 61 | { |
| 62 | SimplexTerrainGenerator generator; |
| 63 | generator.generate(options, heightMap, std::random_device{}()); |
| 64 | } |
| 65 | else |
| 66 | { |
| 67 | PngTerrainGenerator generator; |
| 68 | generator.generate(options, _pngHeightmapPath, heightMap); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | static void generateRivers(const Scenario::Options& options, HeightMap& heightMap) |
| 73 | { |