From fff6a131ccadee9dcbd7f213e1846a0095f526e1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 19 Jan 2024 15:03:59 +0100 Subject: w --- src/chunk.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/chunk.cpp') diff --git a/src/chunk.cpp b/src/chunk.cpp index 8674eb9f..dcb7d030 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -45,6 +45,8 @@ tile_proto chunk::operator[](size_t idx) const noexcept { return tile_proto(tile tile_ref chunk::operator[](local_coords xy) noexcept { return operator[](xy.to_index()); } tile_proto chunk::operator[](local_coords xy) const noexcept { return operator[](xy.to_index()); } +chunk_coords_ chunk::coord() const noexcept { return _coord; } + tile_ref chunk::at_offset(local_coords pos, Vector2i off) { const auto coord = global_coords{_coord, pos}; -- cgit v1.2.3