From 141ecedcacda8fa094a22da067fe24423f0d6f38 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 5 Nov 2022 19:32:03 +0100 Subject: wip --- serialize/anim.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'serialize') diff --git a/serialize/anim.hpp b/serialize/anim.hpp index 74b418a8..286bc56f 100644 --- a/serialize/anim.hpp +++ b/serialize/anim.hpp @@ -9,7 +9,7 @@ namespace floormat::Serialize { struct anim_frame final { - Vector2i ground, offset, size; + Vector2ui ground, offset, size; }; enum class anim_direction : unsigned char @@ -31,10 +31,8 @@ struct anim final String object_name, anim_name; std::vector groups; - int nframes = 0; - int width = 0, height = 0; - int actionframe = -1, fps = default_fps; Vector2ui pixel_size; + std::size_t nframes = 0, width = 0, height = 0, fps = default_fps, actionframe = 0; }; } // namespace floormat::Serialize -- cgit v1.2.3