summaryrefslogtreecommitdiffhomepage
path: root/serialize/wall-atlas.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-03 01:13:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-03 01:13:59 +0100
commitec1df0878b2f2b37055f0fce388cf9a027046c94 (patch)
tree8534555efacbb58f21d88aadc93072fc9bb66ceb /serialize/wall-atlas.hpp
parent6c7821f538d59db2059fb83fcc7f81b28b580036 (diff)
wip
Diffstat (limited to 'serialize/wall-atlas.hpp')
-rw-r--r--serialize/wall-atlas.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/serialize/wall-atlas.hpp b/serialize/wall-atlas.hpp
new file mode 100644
index 00000000..5e454f87
--- /dev/null
+++ b/serialize/wall-atlas.hpp
@@ -0,0 +1,15 @@
+#pragma once
+#include "src/wall-atlas.hpp"
+#include <memory>
+#include <nlohmann/json_fwd.hpp>
+
+namespace nlohmann {
+
+template<>
+struct adl_serializer<std::shared_ptr<floormat::wall_atlas>>
+{
+ static void to_json(json& j, const std::shared_ptr<const floormat::wall_atlas>& x);
+ static void from_json(const json& j, std::shared_ptr<floormat::wall_atlas>& x);
+};
+
+} // namespace nlohmann