]> git.localhorst.tv Git - blank.git/blobdiff - src/world.hpp
separate file for world generation
[blank.git] / src / world.hpp
index 461da5623f5874c7fae25e9923359eaa29e4ead5..4823c47b0c8c0ec804f62f10c5d83f4e5c2dbd04 100644 (file)
@@ -4,7 +4,7 @@
 #include "block.hpp"
 #include "chunk.hpp"
 #include "entity.hpp"
-#include "noise.hpp"
+#include "generator.hpp"
 #include "shader.hpp"
 #include "shape.hpp"
 
@@ -44,17 +44,13 @@ public:
 
        void Render(DirectionalLighting &);
 
-private:
-       void Generate(Chunk &);
-
 private:
        BlockTypeRegistry blockType;
        CuboidShape blockShape;
        StairShape stairShape;
        CuboidShape slabShape;
 
-       SimplexNoise blockNoise;
-       SimplexNoise colorNoise;
+       Generator generate;
 
        Entity player;
        Chunk::Pos player_chunk;