blob: 48ab287fc6738a425d622096e91cd8243e14046c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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] = {
.name = s.name,
.proto = loader.scenery(s.name, s.name == loader.INVALID ? loader_policy::ignore : loader_policy::error)
};
}
} // namespace floormat
|