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
+4 -5
View File
@@ -18,7 +18,6 @@
#include "voxels/WorldGenerator.hpp"
#include "world/Level.hpp"
#include "world/World.hpp"
#include "world/WorldGenerators.hpp"
const uint MAX_WORK_PER_FRAME = 128;
const uint MIN_SURROUNDING = 9;
@@ -28,10 +27,10 @@ ChunksController::ChunksController(Level* level, uint padding)
chunks(level->chunks.get()),
lighting(level->lighting.get()),
padding(padding),
generator(WorldGenerators::createGenerator(
level->getWorld()->getGenerator(), level->content
)) {
}
generator(std::make_unique<WorldGenerator>(
level->content->generators.require(level->getWorld()->getGenerator()),
level->content
)) {}
ChunksController::~ChunksController() = default;