diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 18:34:33 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 21:30:56 +0200 |
| commit | afdb73b18329d1e135340ac4a7aab952648fada8 (patch) | |
| tree | 483972316bf46ac25bbbc180825acb8a3c68ba0b /src/chunk.hpp | |
| parent | e679da407d43b581afaf0539acea1143c022b245 (diff) | |
b
Diffstat (limited to 'src/chunk.hpp')
| -rw-r--r-- | src/chunk.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp index 133fb428..4b18ada8 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -96,7 +96,7 @@ public: void ensure_passability() noexcept; RTree* rtree() noexcept; - class world& world() noexcept { return *_world; } + class world& world() noexcept; [[nodiscard]] bool can_place_object(const object_proto& proto, local_coords pos); @@ -105,6 +105,7 @@ public: void sort_objects(); void remove_object(size_t i); void on_teardown(); + bool is_teardown() const; ArrayView<const std::shared_ptr<object>> objects() const; // for drawing only |
