From 23b0bc4d1ddc9fad3c32e8257497ddd13ac6a155 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 31 Oct 2022 06:24:34 +0100 Subject: Proto biomes and new blocks --- src/World/Generator.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/World/Generator.hpp') diff --git a/src/World/Generator.hpp b/src/World/Generator.hpp index 479089f..f184ff9 100644 --- a/src/World/Generator.hpp +++ b/src/World/Generator.hpp @@ -2,6 +2,7 @@ #include #include "Chunk.hpp" +#include "BiomeType.hpp" namespace MC::World { @@ -10,6 +11,22 @@ public: Generator() = default; Chunk generate(int64_t chunk_x, int64_t chunk_y); + +private: + Matrix ocean_weights_pass( + int64_t chunk_x, int64_t chunk_y + ); + Matrix> biome_weights_pass( + int64_t chunk_x, int64_t chunk_y, + Matrix ocean_weight + ); + Matrix height_pass( + int64_t chunk_x, int64_t chunk_y, + Matrix> biome_weights + ); + Matrix flat_biome_pass( + Matrix> biome_weights + ); }; } -- cgit 1.4.1