diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 21:57:46 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 21:57:46 +1100 |
| commit | e4483eca01b48b943cd0461e24a74ae1a3139ed4 (patch) | |
| tree | ed58c3c246e3af1af337697695d780aa31f6ad9a /src/shared/item/block.cc | |
| parent | 1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (diff) | |
Update to most recent version (old initial commit)
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 |
