LeviLamina
Loading...
Searching...
No Matches
DimensionType.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
struct
DimensionType {
6
public
:
7
// member variables
8
// NOLINTBEGIN
9
::ll::TypedStorage<4, 4, int> mValue;
10
// NOLINTEND
11
12
public
:
13
operator
int()
const
{
return
mValue; }
14
DimensionType(
int
const
value) : mValue(value) {}
15
DimensionType() { mValue = 0; }
16
};
17
18
template
<>
19
struct
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
26
template
<>
27
MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::DimensionType>();
28
// clang-format on
DimensionType
Definition
DimensionType.h:5
src
mc
world
level
dimension
DimensionType.h
Generated on
for LeviLamina by
1.16.1