]> git.localhorst.tv Git - blank.git/blobdiff - src/world.hpp
get world seed from command line arguments
[blank.git] / src / world.hpp
index 87835408e41fed324922efb7f35ca0a6e1bc7178..bca1e0c082e190aadfe147abd2efcd7b852b69d5 100644 (file)
@@ -17,7 +17,7 @@ namespace blank {
 class World {
 
 public:
-       World();
+       explicit World(unsigned int seed);
 
        bool Intersection(
                const Ray &,
@@ -32,6 +32,7 @@ public:
        Entity &Player() { return *player; }
        Entity &AddEntity() { entities.emplace_back(); return entities.back(); }
 
+       Chunk &PlayerChunk();
        Chunk &Next(const Chunk &to, const glm::tvec3<int> &dir);
 
        void Update(int dt);