summaryrefslogtreecommitdiffhomepage
path: root/serialize/tile.hpp
blob: f84ebd8ddd77cc11f0484a706582fb862bd2dcf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <nlohmann/json_fwd.hpp>

namespace Magnum::Examples {
struct tile_image;
struct tile;
struct chunk;
struct local_coords;
} // namespace Magnum::Examples

namespace nlohmann {

template<>
struct adl_serializer<Magnum::Examples::tile_image> {
    static void to_json(json& j, const Magnum::Examples::tile_image& val);
    static void from_json(const json& j, Magnum::Examples::tile_image& val);
};

template<>
struct adl_serializer<Magnum::Examples::tile> {
    static void to_json(json& j, const Magnum::Examples::tile& val);
    static void from_json(const json& j, Magnum::Examples::tile& val);
};

template<>
struct adl_serializer<Magnum::Examples::chunk> {
    static void to_json(json& j, const Magnum::Examples::chunk& val);
    static void from_json(const json& j, Magnum::Examples::chunk& val);
};

template<>
struct adl_serializer<Magnum::Examples::local_coords> {
    static void to_json(json& j, const Magnum::Examples::local_coords& val);
    static void from_json(const json& j, Magnum::Examples::local_coords& val);
};

} // namespace nlohmann