diff options
Diffstat (limited to 'src/shared/item/block.cc')
| -rw-r--r-- | src/shared/item/block.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/shared/item/block.cc b/src/shared/item/block.cc new file mode 100644 index 0000000..e85bea9 --- /dev/null +++ b/src/shared/item/block.cc @@ -0,0 +1,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 |
