diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-05 15:47:29 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-05 15:47:29 +0200 |
| commit | 6731ab0243ba437595062558e56b800d5eca9cf5 (patch) | |
| tree | 39025a8ca381ff6f71cbe316c7d72b32f506a9bf /anim/serialize.cpp | |
| parent | 2c26d57dc97eb7105a6dca2089fd42847a8c2b37 (diff) | |
a
Diffstat (limited to 'anim/serialize.cpp')
| -rw-r--r-- | anim/serialize.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/anim/serialize.cpp b/anim/serialize.cpp deleted file mode 100644 index 8c027d9c..00000000 --- a/anim/serialize.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "serialize.hpp" - -#include <Corrade/Utility/Debug.h> -#include <Corrade/Utility/DebugStl.h> - -#include "json-magnum.hpp" - -using Corrade::Utility::Error; - -#if defined __clang__ || defined __CLION_IDE__ -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wweak-vtables" -# pragma clang diagnostic ignored "-Wcovered-switch-default" -#endif - -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, name, nframes, actionframe, fps, groups, width, height) - -#if defined __clang__ || defined __CLION_IDE__ -# pragma clang diagnostic pop -#endif - -std::tuple<anim, bool> anim::from_json(const std::filesystem::path& pathname) noexcept -{ - return json_helper<anim>::from_json(pathname); -} - -bool anim::to_json(const std::filesystem::path& pathname) const noexcept -{ - return json_helper<anim>::to_json(*this, pathname); -} |
