LeviLamina
Loading...
Searching...
No Matches
DimensionType.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5struct DimensionType {
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<4, 4, int> mValue;
10 // NOLINTEND
11
12public:
13 operator int() const { return mValue; }
14 DimensionType(int const value) : mValue(value) {}
15 DimensionType() { mValue = 0; }
16};
17
18template <>
19struct std::hash<DimensionType> {
20 size_t operator()(DimensionType const& dimensionType) const noexcept {
21 return std::hash<int>()(dimensionType.mValue);
22 }
23};
24
25// clang-format off
26template <>
27MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::DimensionType>();
28// clang-format on
Definition DimensionType.h:5