summaryrefslogtreecommitdiffhomepage
path: root/serialize/scenery.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-01 13:21:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-01 13:21:32 +0100
commit81f68a2c83c0c25259cd526c8bb4839caa361e8f (patch)
treeff2db492dbd3dddfc341370a4cf4b2a95abdae70 /serialize/scenery.hpp
parent511d823c2dc2b917afed6a9c50ad940e5c58c5d5 (diff)
serialize, loader, test: add serializing scenery
Diffstat (limited to 'serialize/scenery.hpp')
-rw-r--r--serialize/scenery.hpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/serialize/scenery.hpp b/serialize/scenery.hpp
index e3eb977a..f3ceb586 100644
--- a/serialize/scenery.hpp
+++ b/serialize/scenery.hpp
@@ -4,15 +4,7 @@
#include <Corrade/Containers/String.h>
#include <nlohmann/json_fwd.hpp>
-namespace floormat::Serialize {
-
-struct serialized_scenery final
-{
- String name, descr;
- scenery_proto proto;
-};
-
-} // namespace floormat::Serialize
+namespace floormat { struct serialized_scenery; }
namespace nlohmann {
@@ -31,9 +23,9 @@ template<> struct adl_serializer<floormat::scenery_proto> {
static void from_json(const json& j, floormat::scenery_proto& val);
};
-template<> struct adl_serializer<floormat::Serialize::serialized_scenery> {
- static void to_json(json& j, const floormat::Serialize::serialized_scenery& val);
- static void from_json(const json& j, floormat::Serialize::serialized_scenery& val);
+template<> struct adl_serializer<floormat::serialized_scenery> {
+ static void to_json(json& j, const floormat::serialized_scenery& val);
+ static void from_json(const json& j, floormat::serialized_scenery& val);
};
} // namespace nlohmann