summaryrefslogtreecommitdiffhomepage
path: root/src/collision.hpp
blob: e5605f4e07a96e5775a54646f13aeb5d4c1db00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

namespace floormat {

enum class collision : unsigned char {
    view, shoot, move,
};

enum class collision_type : unsigned char {
    none, object, scenery, geometry,
};

constexpr inline size_t collision_data_BITS = 60;

struct collision_data final {
    uint64_t tag       : 2;
    uint64_t pass      : 2;
    uint64_t data      : collision_data_BITS;
};

} // namespace floormat