summaryrefslogtreecommitdiffhomepage
path: root/src/world.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-06 15:29:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-06 15:29:33 +0200
commit82ec1a07c79b1c96688464609d043d6ce23685b1 (patch)
tree90473a42d3799bafb4fd9fd2a23f779bf36770db /src/world.hpp
parent9703532543d528757e4635f0eb5c91ccb4c2e300 (diff)
a
Diffstat (limited to 'src/world.hpp')
-rw-r--r--src/world.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/world.hpp b/src/world.hpp
index 98fa7f47..47e6b01d 100644
--- a/src/world.hpp
+++ b/src/world.hpp
@@ -7,8 +7,6 @@
#include <unordered_map>
#include <memory>
-namespace floormat { struct chunk_coords_; }
-
template<>
struct std::hash<floormat::chunk_coords_> final {
floormat::size_t operator()(const floormat::chunk_coords_& coord) const noexcept;
@@ -56,6 +54,7 @@ public:
chunk& operator[](chunk_coords_ c) noexcept;
pair operator[](global_coords pt) noexcept;
+ chunk* at(chunk_coords_ c) noexcept;
bool contains(chunk_coords_ c) const noexcept;
void clear();
void collect(bool force = false);