summaryrefslogtreecommitdiffhomepage
path: root/serialize/world.hpp
blob: dd7f507824bbb249937ab87fdd5001e13485fffa (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
#pragma once
#include <nlohmann/json_fwd.hpp>

namespace floormat {

struct chunk_coords;
struct global_coords;
struct chunk;
struct world;

} // namespace floormat

namespace nlohmann {

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

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

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

} // namespace nlohmann