diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 04:13:39 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 04:13:39 +0100 |
| commit | 8cba3bea1fe18f5f77ce161635bbf367ed0ea167 (patch) | |
| tree | 5a94c102be7cd21c34927a9ae6d78cab108808dd /src/chunk.cpp | |
| parent | 91c74fbf2756094573e524d89f032ff228207e0e (diff) | |
move defaulted ctor to impl file
Diffstat (limited to 'src/chunk.cpp')
| -rw-r--r-- | src/chunk.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp index b78b8f1a..ea3fd8d7 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -19,6 +19,8 @@ bool chunk::empty(bool force) const noexcept return true; } +chunk::chunk() noexcept = default; + tile_ref chunk::operator[](std::size_t idx) noexcept { return { *this, std::uint8_t(idx) }; } tile_proto chunk::operator[](std::size_t idx) const noexcept { return tile_proto(tile_ref { *const_cast<chunk*>(this), std::uint8_t(idx) }); } tile_ref chunk::operator[](local_coords xy) noexcept { return operator[](xy.to_index()); } |
