| 11 | #include "Structures.h" |
| 12 | |
| 13 | Terrain_Generator::Terrain_Generator(const World_Settings& worldSettings) |
| 14 | : m_worldGenType (worldSettings.generator) |
| 15 | , m_pWorldSettings (&worldSettings) |
| 16 | { |
| 17 | m_heightGen.setSeed (worldSettings.seed); |
| 18 | m_biomeNoise.setSeed (worldSettings.seed); |
| 19 | |
| 20 | m_biomeNoise.setNoiseFunction (m_worldGenType.getBiomeMapNoise()); |
| 21 | } |
| 22 | |
| 23 | void Terrain_Generator::reset() |
| 24 | { |
nothing calls this directly
no test coverage detected