diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 13:54:53 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 14:11:47 +0100 |
commit | 7867213a01fcabb1f05b1836c2ca59dc3bb2132f (patch) | |
tree | 44af754bed0278c8bf3435df6278bd291c3043e5 /serialize/ground-atlas.hpp | |
parent | 74cf06b6b217eff32a547cf73f051f27e6b80919 (diff) |
rename tile_atlas -> ground_atlas
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 |