diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-23 14:42:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-26 04:39:12 +0100 |
commit | 3370445a2e22ee00687ecef2e9dc88f47bb2b4c6 (patch) | |
tree | a99ec32a02fc91d729205fc26d7183b6b4214b28 /src/chunk.hpp | |
parent | c141a9efcfaecadffe771bd0c37bea0e46a3f9aa (diff) |
a
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r-- | src/chunk.hpp | 5 |
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; |