summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-json.cpp
blob: a675651255dbb17f3937a90515c906fd2ea10f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "scenery-editor.hpp"
#include "serialize/scenery.hpp"
#include "loader/loader.hpp"

namespace floormat {

void scenery_editor::load_atlases()
{
    _atlases.clear();
    for (auto& s : loader.sceneries())
        _atlases[s.name] = scenery_{s.name, s.descr, s.proto};
}

} // namespace floormat