aboutsummaryrefslogtreecommitdiff
path: root/src/shared/item/block.cc
blob: e85bea93bfeb2ff8c43cff05adfcbc1fb0039b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "shared/item/block.hh"

namespace shared {
namespace item {

item::type_t
block::get_type(const enum shared::world::block::type& type) noexcept {
    return static_cast<std::uint32_t>(type) + type_offset;
}

item::type_t block::get_type() const noexcept {
    return this->get_type(this->type);
}

} // namespace item
} // namespace shared