diff options
Diffstat (limited to 'serialize/ground-atlas.hpp')
-rw-r--r-- | serialize/ground-atlas.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/serialize/ground-atlas.hpp b/serialize/ground-atlas.hpp new file mode 100644 index 00000000..344e8714 --- /dev/null +++ b/serialize/ground-atlas.hpp @@ -0,0 +1,14 @@ +#pragma once +#include "src/ground-atlas.hpp" +#include <memory> +#include <nlohmann/json_fwd.hpp> + +namespace nlohmann { + +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 |