From 6122c00992a51bea45bdbae8cdd10d299445a690 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Nov 2023 13:51:07 +0100 Subject: foo --- src/wall-atlas.hpp | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/wall-atlas.hpp b/src/wall-atlas.hpp index fcad0a8b..60e87286 100644 --- a/src/wall-atlas.hpp +++ b/src/wall-atlas.hpp @@ -90,27 +90,23 @@ struct DirArrayIndex { namespace floormat { +constexpr inline auto Direction_COUNT = (size_t)Wall::Direction_::COUNT; + struct wall_atlas_def final { -private: - using Frame = Wall::Frame; - using Direction = Wall::Direction; - using Info = Wall::Info; - using DirArrayIndex = Wall::DirArrayIndex; - -public: bool operator==(const wall_atlas_def&) const noexcept; - Info header; - std::vector frames; - std::vector direction_array; - std::array direction_map; - std::bitset<(size_t)Wall::Direction_::COUNT> direction_mask{0}; + Wall::Info header; + std::vector frames; + std::vector direction_array; + std::array direction_map; + std::bitset direction_mask{0}; static wall_atlas_def deserialize(StringView filename); void serialize(StringView filename) const; - static void serialize(StringView filename, const Info& header, ArrayView frames, - ArrayView dir_array, std::array dir_map); + static void serialize(StringView filename, const Wall::Info& header, ArrayView frames, + ArrayView dir_array, + std::array dir_map); }; class wall_atlas final -- cgit v1.2.3