summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r--src/chunk.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp
index 2331bef8..89892d90 100644
--- a/src/chunk.hpp
+++ b/src/chunk.hpp
@@ -44,6 +44,11 @@ struct chunk final
tile_ref operator[](local_coords xy) noexcept;
tile_proto operator[](local_coords xy) const noexcept;
+ tile_ref at_offset(local_coords pos, Vector2i off);
+ tile_ref at_offset(tile_ref r, Vector2i off);
+ Optional<tile_ref> at_offset_(local_coords pos, Vector2i off);
+ Optional<tile_ref> at_offset_(tile_ref r, Vector2i off);
+
using iterator = tile_iterator;
using const_iterator = tile_const_iterator;