LeviLamina
Loading...
Searching...
No Matches
ActorUniqueID.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
struct
ActorUniqueID
{
6
public
:
7
[[nodiscard]]
constexpr
bool
operator==(
ActorUniqueID
const
& other)
const
noexcept
{
return
rawID == other.rawID; }
8
9
[[nodiscard]]
constexpr
std::strong_ordering operator<=>(
ActorUniqueID
const
& other)
const
noexcept
{
10
return
rawID <=> other.rawID;
11
}
12
13
public
:
14
// member variables
15
// NOLINTBEGIN
16
int64 rawID;
17
// NOLINTEND
18
19
public
:
20
// member functions
21
// NOLINTBEGIN
22
MCAPI uint64 getHash()
const
;
23
// NOLINTEND
24
25
public
:
26
// static variables
27
// NOLINTBEGIN
28
MCAPI static ::ActorUniqueID
const
& INVALID_ID();
29
// NOLINTEND
30
};
31
32
namespace
std
{
33
template
<>
34
class
hash<
ActorUniqueID
> {
35
public
:
36
size_t
operator()(
ActorUniqueID
const
&
id
)
const
{
return
id
.getHash(); }
37
};
38
}
// namespace std
std
STL namespace.
ActorUniqueID
Definition
ActorUniqueID.h:5
src
mc
legacy
ActorUniqueID.h
Generated on Fri Jun 13 2025 05:04:41 for LeviLamina by
1.12.0