summaryrefslogtreecommitdiffhomepage
path: root/serialize/ground-atlas.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-11 18:15:00 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-11 18:15:00 +0100
commitc93b3616adbf26673fc928fdfbbec814fec41c75 (patch)
tree517ee19f32a2ae7d098141335b04e92bffcdc564 /serialize/ground-atlas.hpp
parent98416d95331c63affabf331afba0e1dcb307c430 (diff)
w
Diffstat (limited to 'serialize/ground-atlas.hpp')
-rw-r--r--serialize/ground-atlas.hpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/serialize/ground-atlas.hpp b/serialize/ground-atlas.hpp
index 7ca57ede..fc8acec5 100644
--- a/serialize/ground-atlas.hpp
+++ b/serialize/ground-atlas.hpp
@@ -1,5 +1,5 @@
#pragma once
-#include "loader/ground-info.hpp"
+#include "src/ground-atlas.hpp"
#include <nlohmann/json_fwd.hpp>
namespace floormat {
@@ -11,9 +11,15 @@ struct ground_info;
namespace nlohmann {
template<>
-struct adl_serializer<floormat::ground_info> final {
- static void to_json(json& j, const floormat::ground_info& x) = delete;
- static void from_json(const json& j, floormat::ground_info& x);
+struct adl_serializer<floormat::ground_def> final {
+ static void to_json(json& j, const floormat::ground_def& x);
+ static void from_json(const json& j, floormat::ground_def& x);
+};
+
+template<>
+struct adl_serializer<std::shared_ptr<floormat::ground_atlas>> final {
+ static void to_json(json& j, const std::shared_ptr<const floormat::ground_atlas>& x);
+ static void from_json(const json& j, std::shared_ptr<floormat::ground_atlas>& x);
};
} // namespace nlohmann