blob: 3eee243f50bef97ace0cd48299cfa938eeafbc55 (
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/global-coords.hpp"
#include <Corrade/Containers/BitArrayView.h>
#include <Magnum/Math/Range.h>
namespace floormat {
template<typename Atlas, typename T>
struct clickable final {
Atlas& atlas;
T& item;
Math::Range2D<UnsignedInt> src, dest;
BitArrayView bitmask;
float depth = 0;
chunk_coords chunk;
local_coords pos;
bool mirrored = false;
};
} // namespace floormat
|