diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-03 01:13:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-03 01:13:59 +0100 |
commit | ec1df0878b2f2b37055f0fce388cf9a027046c94 (patch) | |
tree | 8534555efacbb58f21d88aadc93072fc9bb66ceb /serialize/wall-atlas.hpp | |
parent | 6c7821f538d59db2059fb83fcc7f81b28b580036 (diff) |
wip
Diffstat (limited to 'serialize/wall-atlas.hpp')
-rw-r--r-- | serialize/wall-atlas.hpp | 15 |
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 |