diff options
Diffstat (limited to 'serialize/tile.hpp')
| -rw-r--r-- | serialize/tile.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/serialize/tile.hpp b/serialize/tile.hpp index 01673b2b..1d629fe6 100644 --- a/serialize/tile.hpp +++ b/serialize/tile.hpp @@ -4,9 +4,9 @@ namespace floormat { struct tile_image; -struct tile; -struct chunk; struct local_coords; +struct chunk_coords; +struct global_coords; } // namespace floormat @@ -24,4 +24,16 @@ struct adl_serializer<floormat::local_coords> { static void from_json(const json& j, floormat::local_coords& val); }; +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); +}; + } // namespace nlohmann |
