diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 13:21:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 13:21:32 +0100 |
commit | 81f68a2c83c0c25259cd526c8bb4839caa361e8f (patch) | |
tree | ff2db492dbd3dddfc341370a4cf4b2a95abdae70 /serialize/scenery.cpp | |
parent | 511d823c2dc2b917afed6a9c50ad940e5c58c5d5 (diff) |
serialize, loader, test: add serializing scenery
Diffstat (limited to 'serialize/scenery.cpp')
-rw-r--r-- | serialize/scenery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/scenery.cpp b/serialize/scenery.cpp index 94d9ad9d..7b402945 100644 --- a/serialize/scenery.cpp +++ b/serialize/scenery.cpp @@ -3,13 +3,13 @@ #include "compat/assert.hpp" #include "loader/loader.hpp" #include "serialize/corrade-string.hpp" +#include "loader/scenery.hpp" #include <Corrade/Containers/StringStlView.h> #include <nlohmann/json.hpp> namespace { using namespace floormat; -using namespace floormat::Serialize; constexpr struct { scenery_type value = scenery_type::none; @@ -107,8 +107,8 @@ void adl_serializer<scenery_proto>::from_json(const json& j, scenery_proto& val) f = {}; auto type = scenery_type::generic; get("type", type); + auto r = val.atlas->first_rotation(); get("rotation", r); auto frame = f.frame; get("frame", frame); - auto r = f.r; get("rotation", r); bool passable = f.passable; get("passable", passable); bool blocks_view = f.blocks_view; get("blocks-view", blocks_view); bool active = f.active; get("active", active); |