summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-json.cpp
blob: 7f832b0f938d64c4203f2bf0c64dc39122f51a51 (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.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