]> git.localhorst.tv Git - blank.git/blobdiff - src/world/ChunkStore.hpp
some linting
[blank.git] / src / world / ChunkStore.hpp
index 12debef87b8f4997460959c40d5b71f668f91d22..a0fd0f93686b07b68a934160c658cc4390828e76 100644 (file)
@@ -13,7 +13,7 @@ class ChunkIndex;
 class ChunkStore {
 
 public:
-       ChunkStore(const BlockTypeRegistry &);
+       explicit ChunkStore(const BlockTypeRegistry &);
        ~ChunkStore();
 
        ChunkStore(const ChunkStore &) = delete;
@@ -26,7 +26,8 @@ public:
        ChunkIndex *ClosestIndex(const ExactLocation::Coarse &pos);
 
        /// returns nullptr if given position is not loaded
-       Chunk *Get(const ExactLocation::Coarse &);
+       Chunk *Get(const ExactLocation::Coarse &) noexcept;
+       const Chunk *Get(const ExactLocation::Coarse &) const noexcept;
        /// returns nullptr if given position is not indexed
        Chunk *Allocate(const ExactLocation::Coarse &);