diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-22 16:03:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-22 16:03:10 +0200 |
commit | b1165d784c446dc505a100d861cb5151bebdda15 (patch) | |
tree | 0186179580aa8585f6fb3f3ad9c0ca7207f97607 /serialize/world.hpp | |
parent | aa03952cb2a889f8d81a70ed4bd0b4ae69e5ab8d (diff) |
serializer work
Diffstat (limited to 'serialize/world.hpp')
-rw-r--r-- | serialize/world.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/serialize/world.hpp b/serialize/world.hpp index 05c88b40..dd7f5078 100644 --- a/serialize/world.hpp +++ b/serialize/world.hpp @@ -5,6 +5,8 @@ namespace floormat { struct chunk_coords; struct global_coords; +struct chunk; +struct world; } // namespace floormat @@ -22,4 +24,10 @@ struct adl_serializer<floormat::global_coords> { 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 |