summaryrefslogtreecommitdiffhomepage
path: root/serialize/world.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'serialize/world.hpp')
-rw-r--r--serialize/world.hpp8
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