From 9b70fb78e70a509ba5bfa1c1d0a839eddd0902dc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 13 Feb 2024 07:02:14 +0100 Subject: wip atlas --- loader/scenery-cell.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'loader/scenery-cell.cpp') diff --git a/loader/scenery-cell.cpp b/loader/scenery-cell.cpp index 03fefdcc..9a4a28d4 100644 --- a/loader/scenery-cell.cpp +++ b/loader/scenery-cell.cpp @@ -1 +1,17 @@ #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" + +namespace floormat { + +vector_wrapper 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>(path) }; +} + +} // namespace floormat -- cgit v1.2.3