diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-05 06:30:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-05 06:30:59 +0100 |
commit | 960e346159dbf152d9847f0998e1e717fb7dbfef (patch) | |
tree | 6aab5985d1a2f20542e152d70c9be46bbed0025e /test/json.cpp | |
parent | 4ad635e8dfe21d2dd0e0582c44379dde26ca57a8 (diff) |
src: add pass_mode field to tile_atlas
Diffstat (limited to 'test/json.cpp')
-rw-r--r-- | test/json.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/json.cpp b/test/json.cpp index 1ef6feb8..60e464f6 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -16,9 +16,9 @@ namespace floormat { [[maybe_unused]] static chunk make_test_chunk() { - auto metal1 = loader.tile_atlas("metal1", {2, 2}), - metal2 = loader.tile_atlas("metal2", {2, 2}), - tiles = loader.tile_atlas("tiles", {8, 5}); + auto metal1 = loader.tile_atlas("metal1", {2, 2}, pass_mode::pass), + metal2 = loader.tile_atlas("metal2", {2, 2}, pass_mode::blocked), + tiles = loader.tile_atlas("tiles", {8, 5}, pass_mode::pass); constexpr auto N = TILE_MAX_DIM; chunk c; for (auto [x, k, pt] : c) { @@ -37,7 +37,7 @@ void test_app::test_json() // NOLINT(readability-convert-member-functions-to-sta fm_assert(Path::exists("../CMakeCache.txt")); constexpr auto output_dir = "../test/."_s; { - auto atlas = loader.tile_atlas("metal1", {2, 2}); + auto atlas = loader.tile_atlas("metal1", {2, 2}, pass_mode::pass); json_helper::to_json(atlas, Path::join(output_dir, "atlas.json")); } { |