add struct Biome & move generator-related scripting to scripting_world_generation.cpp

This commit is contained in:
MihailRis
2024-08-18 22:25:36 +03:00
parent 810519fb4d
commit 685cd414c4
5 changed files with 181 additions and 164 deletions
+3 -2
View File
@@ -56,8 +56,9 @@ void WorldGenerator::generate(
{chunkX * CHUNK_W, chunkZ * CHUNK_D}, {CHUNK_W, CHUNK_D}, seed
);
auto values = heightmap->getValues();
const auto& groundLayers = def.script->getGroundLayers();
const auto& seaLayers = def.script->getSeaLayers();
const auto& biome = def.script->getBiome();
const auto& groundLayers = biome.groundLayers;
const auto& seaLayers = biome.seaLayers;
uint seaLevel = def.script->getSeaLevel();