feat: 'lines' (cave-like structures/tunnels) (WIP)

This commit is contained in:
MihailRis
2024-10-08 02:32:45 +03:00
parent 8813d280dc
commit 116cbd61db
7 changed files with 176 additions and 33 deletions
+5 -1
View File
@@ -32,6 +32,8 @@ struct ChunkPrototype {
std::shared_ptr<Heightmap> heightmap;
std::vector<StructurePlacement> structures;
std::vector<LinePlacement> lines;
};
struct WorldGenDebugInfo {
@@ -69,9 +71,11 @@ class WorldGenerator {
void generateHeightmap(ChunkPrototype& prototype, int x, int z);
void placeStructure(
const glm::ivec3 offset, size_t structure, uint8_t rotation,
const glm::ivec3& offset, size_t structure, uint8_t rotation,
int chunkX, int chunkZ
);
void placeLine(const LinePlacement& line);
public:
WorldGenerator(
const GeneratorDef& def,