summaryrefslogtreecommitdiffhomepage
path: root/serialize/ground-atlas.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'serialize/ground-atlas.hpp')
-rw-r--r--serialize/ground-atlas.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/serialize/ground-atlas.hpp b/serialize/ground-atlas.hpp
index a423ebbe..20b50537 100644
--- a/serialize/ground-atlas.hpp
+++ b/serialize/ground-atlas.hpp
@@ -1,10 +1,11 @@
#pragma once
-#include "src/ground-atlas.hpp"
#include <nlohmann/json_fwd.hpp>
namespace floormat {
+struct ground_def;
struct ground_cell;
+class ground_atlas;
} // namespace floormat
@@ -22,4 +23,10 @@ struct adl_serializer<std::shared_ptr<floormat::ground_atlas>> final {
static void from_json(const json& j, std::shared_ptr<floormat::ground_atlas>& x);
};
+template<>
+struct adl_serializer<floormat::ground_cell> final {
+ static void to_json(json& j, const floormat::ground_cell& x);
+ static void from_json(const json& j, floormat::ground_cell& x);
+};
+
} // namespace nlohmann