blob: 9a4a28d46f42f2639293d9cc0c5f2bdb1f6820f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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<const 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) };
}
} // namespace floormat
|