summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-01 17:23:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-01 17:23:27 +0100
commit257c2420545eb632a53c0fe3cd317be613dcb272 (patch)
tree95dfb97898f84ea60b293e60453bef1c57088fa4 /src/chunk.cpp
parentf6aed5a3ae2e6b2b2eb822deee0a579ca66cd13f (diff)
editor: update bboxes from a central place
Diffstat (limited to 'src/chunk.cpp')
-rw-r--r--src/chunk.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp
index b7f54e4d..8310c756 100644
--- a/src/chunk.cpp
+++ b/src/chunk.cpp
@@ -34,6 +34,7 @@ auto chunk::end() const noexcept -> const_iterator { return cend(); }
void chunk::mark_ground_modified() noexcept { _ground_modified = true; _pass_modified = true; }
void chunk::mark_walls_modified() noexcept { _walls_modified = true; _pass_modified = true; }
void chunk::mark_scenery_modified() noexcept { _scenery_modified = true; _pass_modified = true; }
+bool chunk::is_passability_modified() const noexcept { return _pass_modified; }
void chunk::mark_modified() noexcept
{
@@ -48,4 +49,6 @@ chunk::~chunk() noexcept = default;
chunk::chunk(chunk&&) noexcept = default;
chunk& chunk::operator=(chunk&&) noexcept = default;
+bool chunk::bbox::operator==(const bbox& other) const noexcept = default;
+
} // namespace floormat