summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-json.cpp
blob: e2bf24a67c75954359418865a2299fecf4dc702a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "scenery-editor.hpp"
#include "serialize/scenery.hpp"
#include "loader/loader.hpp"
#include "loader/scenery-cell.hpp"
#include <Corrade/Containers/ArrayView.h>

namespace floormat {

void scenery_editor::load_atlases()
{
    _atlases.clear();
    for (const auto& s : loader.scenery_list())
        _atlases[s.name] = { s.name, loader.scenery(s.name) };
}

} // namespace floormat