summaryrefslogtreecommitdiffhomepage
path: root/serialize/tile.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-27 14:42:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-27 14:42:14 +0200
commitedb014053ebd3256b3bce16d8d5ac6479d905a2e (patch)
tree0194c62a27ea31ed8594af93f71ae7b0f2374ca3 /serialize/tile.cpp
parent0c468a802bd6c41bf57bd674cb9f44157a3af155 (diff)
kill serializing the world for now
Diffstat (limited to 'serialize/tile.cpp')
-rw-r--r--serialize/tile.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/serialize/tile.cpp b/serialize/tile.cpp
index 8a5374ab..629ce52d 100644
--- a/serialize/tile.cpp
+++ b/serialize/tile.cpp
@@ -19,13 +19,8 @@ namespace nlohmann {
void adl_serializer<tile_image>::to_json(json& j, const tile_image& val) { using nlohmann::to_json; if (val.atlas) to_json(j, val); else j = nullptr; }
void adl_serializer<tile_image>::from_json(const json& j, tile_image& val) { using nlohmann::from_json; if (j.is_null()) val = {}; else from_json(j, val); }
-void adl_serializer<tile>::to_json(json& j, const tile& val) { using nlohmann::to_json; to_json(j, val); }
-void adl_serializer<tile>::from_json(const json& j, tile& val) { using nlohmann::from_json; from_json(j, val); }
-
-void adl_serializer<chunk>::to_json(json& j, const chunk& val) { using nlohmann::to_json; to_json(j, val.tiles()); }
-void adl_serializer<chunk>::from_json(const json& j, chunk& val) { using nlohmann::from_json; from_json(j, val.tiles()); }
-
void adl_serializer<local_coords>::to_json(json& j, const local_coords& val) { using nlohmann::to_json; to_json(j, val); }
void adl_serializer<local_coords>::from_json(const json& j, local_coords& val) { using nlohmann::from_json; from_json(j, val); }
} // namespace nlohmann
+