summaryrefslogtreecommitdiffhomepage
path: root/loader/ground-cell.hpp
blob: 0e1e51be3fcb58d31185c7526e537782fcb94f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "compat/vector-wrapper-fwd.hpp"
#include "src/pass-mode.hpp"
#include <memory>
#include <Corrade/Containers/String.h>
#include <Magnum/Math/Vector2.h>

namespace floormat {

class ground_atlas;

struct ground_cell
{
    std::shared_ptr<ground_atlas> atlas;
    String name;
    Vector2ub size;
    pass_mode pass = pass_mode::pass;

    static vector_wrapper<const ground_cell> load_atlases_from_json();
};

} // namespace floormat