add VoxelStructure lua usertype

This commit is contained in:
MihailRis
2024-09-19 18:41:34 +03:00
parent bf9f81a98c
commit 88b0f8e3d6
17 changed files with 180 additions and 60 deletions
+6 -3
View File
@@ -7,7 +7,8 @@
#include "content/Content.hpp"
#include "voxels/Block.hpp"
#include "voxels/Chunk.hpp"
#include "world/generator/GeneratorDef.hpp"
#include "GeneratorDef.hpp"
#include "VoxelStructure.hpp"
#include "util/timeutil.hpp"
#include "debug/Logger.hpp"
@@ -47,6 +48,8 @@ WorldGenerator::WorldGenerator(
});
}
WorldGenerator::~WorldGenerator() {}
static inline void generate_pole(
const BlocksLayers& layers,
int top, int bottom,
@@ -119,8 +122,8 @@ std::unique_ptr<ChunkPrototype> WorldGenerator::generatePrototype(
}
return std::make_unique<ChunkPrototype>(
ChunkPrototypeLevel::BIOMES,
nullptr,
std::move(chunkBiomes));
std::move(chunkBiomes),
nullptr);
}
void WorldGenerator::generateHeightmap(