summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-28 09:45:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-28 19:55:55 +0200
commite2041648080ce6e3d15592b1b60f0b6819732eec (patch)
tree9ffb54f46a3cd980d4bd2fabc8430851c1882fdd /src/chunk.hpp
parentfcc04fb4014858c5e605c190dcb1f69fdab02a2c (diff)
expose find_hole_in_bbox()
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r--src/chunk.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp
index 3d3bbe5a..9efa0c9d 100644
--- a/src/chunk.hpp
+++ b/src/chunk.hpp
@@ -98,6 +98,8 @@ public:
class world& world() noexcept;
[[nodiscard]] bool can_place_object(const object_proto& proto, local_coords pos);
+ [[nodiscard]] bool find_hole_in_bbox(CutResult<float>::rect& hole, Vector2 min, Vector2 max);
+ [[nodiscard]] static bool find_hole_in_bbox(CutResult<float>::rect& hole, Chunk_RTree& rtree, Vector2 min, Vector2 max);
void on_teardown();
bool is_teardown() const;