summaryrefslogtreecommitdiffhomepage
path: root/tile/serialize.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-09-30 18:48:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-09-30 18:50:32 +0200
commit5c9863cf0998b5f1b6107ce09b54cd3e8b484221 (patch)
tree7ca268c80a0ec7ac0c1b815d984cf11309b96840 /tile/serialize.cpp
parentd3a29055d8b1dce89c77af0988ea840e949d2450 (diff)
.
Diffstat (limited to 'tile/serialize.cpp')
-rw-r--r--tile/serialize.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tile/serialize.cpp b/tile/serialize.cpp
new file mode 100644
index 00000000..4043c8de
--- /dev/null
+++ b/tile/serialize.cpp
@@ -0,0 +1,17 @@
+#include "serialize.hpp"
+#include <nlohmann/json.hpp>
+#include "json-magnum.hpp"
+
+std::tuple<big_atlas, bool> big_atlas::from_json(const std::filesystem::path& pathname) noexcept
+{
+
+}
+
+bool big_atlas::to_json(const std::filesystem::path& pathname) noexcept
+{
+
+}
+
+NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(big_atlas_tile, position)
+NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(big_atlas_entry, tiles)
+NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(big_atlas, entries)