diff options
Diffstat (limited to 'serialize')
| -rw-r--r-- | serialize/anim.cpp | 2 | ||||
| -rw-r--r-- | serialize/anim.hpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/serialize/anim.cpp b/serialize/anim.cpp index 76d72485..7a5f06fb 100644 --- a/serialize/anim.cpp +++ b/serialize/anim.cpp @@ -11,7 +11,7 @@ namespace floormat::Serialize { NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim_frame, ground, offset, size) NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim_group, name, frames, ground) -NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim, object_name, anim_name, nframes, actionframe, fps, groups, width, height) +NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim, object_name, anim_name, pixel_size, nframes, actionframe, fps, groups, width, height) } // namespace floormat::Serialize diff --git a/serialize/anim.hpp b/serialize/anim.hpp index 536824d3..74b418a8 100644 --- a/serialize/anim.hpp +++ b/serialize/anim.hpp @@ -34,6 +34,7 @@ struct anim final int nframes = 0; int width = 0, height = 0; int actionframe = -1, fps = default_fps; + Vector2ui pixel_size; }; } // namespace floormat::Serialize |
