summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-json.cpp
blob: 7a31a306da902d27f8e35b74208e8a0eb7274147 (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.sceneries())
        _atlases[s.name] = scenery_{s.name, s.proto};
}

} // namespace floormat