add heightmap-based test generation

This commit is contained in:
MihailRis
2024-08-14 18:44:32 +03:00
parent 95cf451cc8
commit ae5671364a
18 changed files with 82 additions and 440 deletions
+3 -2
View File
@@ -15,7 +15,8 @@
#include "voxels/Chunk.hpp"
#include "voxels/Chunks.hpp"
#include "voxels/ChunksStorage.hpp"
#include "WorldGenerators.hpp"
#include "voxels/WorldGenerator.hpp"
#include "world/generator/GeneratorDef.hpp"
#include "Level.hpp"
static debug::Logger logger("world");
@@ -205,7 +206,7 @@ void WorldInfo::deserialize(dynamic::Map* root) {
seed = root->get("seed", seed);
if (generator.empty()) {
generator = WorldGenerators::getDefaultGeneratorID();
generator = WorldGenerator::DEFAULT;
}
if (auto verobj = root->map("version")) {
verobj->num("major", major);