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

namespace floormat {

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;

    bool operator==(const collision_data&) const noexcept;
};

} // namespace floormat