From 5cbad4be539224068d34504df692974b17f49fa0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 11 Jun 2022 18:17:06 +0200 Subject: a --- anim/serialize.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'anim/serialize.hpp') diff --git a/anim/serialize.hpp b/anim/serialize.hpp index 8c049978..a8b13d41 100644 --- a/anim/serialize.hpp +++ b/anim/serialize.hpp @@ -19,7 +19,7 @@ struct anim_frame final enum class anim_direction : unsigned char { N, NE, E, SE, S, SW, W, NW, - COUNT = NW + 1, + COUNT, }; struct anim_group final @@ -31,11 +31,13 @@ struct anim_group final struct anim final { - static std::tuple from_json(const std::filesystem::path& pathname); - [[nodiscard]] bool to_json(const std::filesystem::path& pathname); + static std::tuple from_json(const std::filesystem::path& pathname) noexcept; + [[nodiscard]] bool to_json(const std::filesystem::path& pathname) noexcept; static constexpr int default_fps = 24; std::string name; std::array groups; - int nframes = 0, actionframe = -1, fps = default_fps; + int nframes = 0; + int width = 0, height = 0; + int actionframe = -1, fps = default_fps; }; -- cgit v1.2.3