]> git.localhorst.tv Git - blank.git/blobdiff - src/generator.hpp
minor optimizations in chunk
[blank.git] / src / generator.hpp
index 70c38f59941e517e62de8a9a6920db9610c235f4..dedfb72b7c94fc5461bf795accf09d33f9b86542 100644 (file)
@@ -20,12 +20,12 @@ public:
                float solid_threshold = 0.5f;
        };
 
-       explicit Generator(const Config &);
+       explicit Generator(const Config &) noexcept;
 
-       void operator ()(Chunk &) const;
+       void operator ()(Chunk &) const noexcept;
 
-       void Space(Block::Type t) { space = t; }
-       void Light(Block::Type t) { light = t; }
+       void Space(Block::Type t) noexcept { space = t; }
+       void Light(Block::Type t) noexcept { light = t; }
        void Solids(const std::vector<Block::Type> &s) { solids = s; }
 
 private: