mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add heightmap-based test generation
This commit is contained in:
parent
95cf451cc8
commit
ae5671364a
18 changed files with 82 additions and 440 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue