summaryrefslogtreecommitdiffhomepage
path: root/serialize/anim.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-05 19:32:03 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-05 19:32:03 +0100
commit141ecedcacda8fa094a22da067fe24423f0d6f38 (patch)
tree67a8241c1bcd4d9788e93d472859ee15b496300b /serialize/anim.hpp
parent11f27ee84b255ee5a3f9d72832f5bfef261d2378 (diff)
wip
Diffstat (limited to 'serialize/anim.hpp')
-rw-r--r--serialize/anim.hpp6
1 files changed, 2 insertions, 4 deletions
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<anim_group> 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