summaryrefslogtreecommitdiffhomepage
path: root/serialize/anim.hpp
blob: 6cfa0c75b03500a9c12f4de9fc40e6194588050d (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
#pragma once

#include "src/anim.hpp"
#include <nlohmann/json_fwd.hpp>

namespace nlohmann {

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

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

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

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

} // namespace nlohmann