diff options
Diffstat (limited to 'test/json.cpp')
-rw-r--r-- | test/json.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/json.cpp b/test/json.cpp index d9be8ff3..70d8a80c 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -1,6 +1,7 @@ #include "app.hpp" #include "serialize/tile.hpp" #include "serialize/ground-atlas.hpp" +#include "serialize/wall-atlas.hpp" #include "serialize/magnum-vector.hpp" #include "serialize/json-helper.hpp" #include "compat/assert.hpp" @@ -10,6 +11,8 @@ #include "src/chunk.hpp" #include "src/world.hpp" #include "loader/loader.hpp" +#include "loader/wall-info.hpp" +#include <memory> #include <Corrade/Containers/StringView.h> #include <Corrade/Utility/Path.h> @@ -20,10 +23,6 @@ void test_app::test_json() // NOLINT(readability-convert-member-functions-to-sta fm_assert(Path::exists(Path::join(loader.TEMP_PATH, "CMakeCache.txt"))); const auto output_dir = Path::join(loader.TEMP_PATH, "test/."_s); { - auto atlas = loader.ground_atlas("metal1"); - json_helper::to_json(atlas, Path::join(output_dir, "atlas.json")); - } - { Magnum::Math::Vector<2, int> v2i_1{1, 2}; Vector2i v2i_2{2, 3}; json_helper::to_json(v2i_1, Path::join(output_dir, "vec2i_1.json")); |