diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 06:13:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 06:13:05 +0200 |
commit | 9b2b5c5fd5880f35e2e952bb89fc709f4b814364 (patch) | |
tree | c84f3d560f915fcdd046b18f37ed2987d91f72e1 /serialize | |
parent | 3d89b33c5f01465372f293abd970160f652824ef (diff) |
a
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/anim.cpp | 2 | ||||
-rw-r--r-- | serialize/magnum-vector.hpp (renamed from serialize/vector.hpp) | 0 | ||||
-rw-r--r-- | serialize/tile-atlas.hpp | 27 |
3 files changed, 28 insertions, 1 deletions
diff --git a/serialize/anim.cpp b/serialize/anim.cpp index c65c24a6..78c871a8 100644 --- a/serialize/anim.cpp +++ b/serialize/anim.cpp @@ -1,4 +1,4 @@ -#include "serialize/vector.hpp" +#include "serialize/magnum-vector.hpp" #include "serialize/helper.hpp" #include "serialize/anim.hpp" diff --git a/serialize/vector.hpp b/serialize/magnum-vector.hpp index 39924a9b..39924a9b 100644 --- a/serialize/vector.hpp +++ b/serialize/magnum-vector.hpp diff --git a/serialize/tile-atlas.hpp b/serialize/tile-atlas.hpp new file mode 100644 index 00000000..af279251 --- /dev/null +++ b/serialize/tile-atlas.hpp @@ -0,0 +1,27 @@ +#pragma once +#include "../tile-atlas.hpp" +#include <nlohmann/json.hpp> + +namespace nlohmann { + +template<> +struct adl_serializer<Magnum::Examples::tile_atlas> final { + static void to_json(json& j, const Magnum::Examples::tile_atlas& x); + static void from_json(const json& j, Magnum::Examples::tile_atlas& x); +}; + +void adl_serializer<Magnum::Examples::tile_atlas>::to_json(json& j, const Magnum::Examples::tile_atlas& x) +{ +} + +void adl_serializer<Magnum::Examples::tile_atlas>::from_json(const json& j, Magnum::Examples::tile_atlas& x) +{ +} + +} // namespace nlohmann + +namespace Magnum::Examples::Serialize { + + + +} // namespace Magnum::Examples::Serialize |