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

namespace floormat {

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

} // namespace floormat