diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-09-30 18:48:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-09-30 18:50:32 +0200 |
commit | 5c9863cf0998b5f1b6107ce09b54cd3e8b484221 (patch) | |
tree | 7ca268c80a0ec7ac0c1b815d984cf11309b96840 /tile.hpp | |
parent | d3a29055d8b1dce89c77af0988ea840e949d2450 (diff) |
.
Diffstat (limited to 'tile.hpp')
-rw-r--r-- | tile.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ #pragma once -#include "texture-atlas.hpp" +#include "tile-atlas.hpp" #include "hash.hpp" #include "defs.hpp" @@ -17,7 +17,7 @@ static constexpr Vector3 TILE_SIZE = { 50, 50, 50 }; struct tile_image final { - std::shared_ptr<texture_atlas> atlas; + std::shared_ptr<tile_atlas> atlas; std::uint8_t variant = 0xff; explicit operator bool() const noexcept { return !!atlas; } @@ -140,7 +140,7 @@ struct world final { static_assert(sizeof(chunk_coords::x) <= sizeof(std::size_t)/2); - explicit world(); + explicit world() = default; template<typename F> std::shared_ptr<chunk> ensure_chunk(chunk_coords xy, F&& fun); private: |