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

namespace floormat {

class ground_atlas;

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

    static Array<ground_cell> load_atlases_from_json();
};

} // namespace floormat