summaryrefslogtreecommitdiffhomepage
path: root/serialize/tile-atlas.hpp
blob: f4549d7cfc665a5b889f1b0a55f5226f493b5ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include <memory>
#include <nlohmann/json_fwd.hpp>

namespace floormat { struct tile_atlas; }

namespace nlohmann {

template<>
struct adl_serializer<std::shared_ptr<floormat::tile_atlas>> final {
    static void to_json(json& j, const std::shared_ptr<floormat::tile_atlas>& x);
    static void from_json(const json& j, std::shared_ptr<floormat::tile_atlas>& x);
};

} // namespace nlohmann