diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-14 19:40:18 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-14 19:40:18 +0100 |
| commit | 07018b1d1247f4fb558a2b551dd8d4ca35346377 (patch) | |
| tree | 51ee528771fbb77ee1f62adf38a1d8cca1c8ac8c /loader/scenery-cell.cpp | |
| parent | 626e49662839a1ecd505547a5671d1ab8ac5b4aa (diff) | |
switch back to using StringView in atlas loader
Diffstat (limited to 'loader/scenery-cell.cpp')
| -rw-r--r-- | loader/scenery-cell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/scenery-cell.cpp b/loader/scenery-cell.cpp index 96b256cb..d8b0f885 100644 --- a/loader/scenery-cell.cpp +++ b/loader/scenery-cell.cpp @@ -1,18 +1,18 @@ #include "scenery-cell.hpp" -#include "compat/vector-wrapper.hpp" #include "src/anim-atlas.hpp" #include "loader/loader.hpp" #include "serialize/json-helper.hpp" #include "serialize/scenery.hpp" #include "serialize/json-wrapper.hpp" +#include "serialize/corrade-array.hpp" namespace floormat { -vector_wrapper<const scenery_cell> scenery_cell::load_atlases_from_json() +Array<scenery_cell> scenery_cell::load_atlases_from_json() { char buf[fm_FILENAME_MAX]; auto path = loader.make_atlas_path(buf, loader.SCENERY_PATH, "scenery.json"_s); - return { json_helper::from_json<std::vector<scenery_cell>>(path) }; + return json_helper::from_json<Array<scenery_cell>>(path); } } // namespace floormat |
