blob: f3ceb5862b8aab35193a6e03c83a5779e86efe8d (
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
|
#pragma once
#include "src/scenery.hpp"
#include <vector>
#include <Corrade/Containers/String.h>
#include <nlohmann/json_fwd.hpp>
namespace floormat { struct serialized_scenery; }
namespace nlohmann {
template<> struct adl_serializer<floormat::scenery_type> {
static void to_json(json& j, floormat::scenery_type val);
static void from_json(const json& j, floormat::scenery_type& val);
};
template<> struct adl_serializer<floormat::rotation> {
static void to_json(json& j, floormat::rotation val);
static void from_json(const json& j, floormat::rotation& val);
};
template<> struct adl_serializer<floormat::scenery_proto> {
static void to_json(json& j, const floormat::scenery_proto& val);
static void from_json(const json& j, floormat::scenery_proto& val);
};
template<> struct adl_serializer<floormat::serialized_scenery> {
static void to_json(json& j, const floormat::serialized_scenery& val);
static void from_json(const json& j, floormat::serialized_scenery& val);
};
} // namespace nlohmann
|