LeviLamina
Loading...
Searching...
No Matches
ActorRuntimeID.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
class
ActorRuntimeID
{
6
public
:
7
[[nodiscard]]
constexpr
bool
operator==(
ActorRuntimeID
const
& other)
const
noexcept
{
return
rawID == other.rawID; }
8
9
[[nodiscard]]
constexpr
std::strong_ordering operator<=>(
ActorRuntimeID
const
& other)
const
noexcept
{
10
return
rawID <=> other.rawID;
11
}
12
13
[[nodiscard]]
constexpr
ActorRuntimeID
() : rawID(0) {}
14
[[nodiscard]]
constexpr
ActorRuntimeID
(uint64 x) : rawID(x) {}
15
16
[[nodiscard]]
constexpr
operator
uint64()
const
{
return
rawID; }
17
18
public
:
19
// member variables
20
// NOLINTBEGIN
21
uint64 rawID;
22
// NOLINTEND
23
};
24
25
namespace
std
{
26
template
<>
27
class
hash<
ActorRuntimeID
> {
28
public
:
29
size_t
operator()(
ActorRuntimeID
const
&
id
)
const
{
return
std::hash<int64>()(
id
.rawID); }
30
};
31
}
// namespace std
ActorRuntimeID
Definition
ActorRuntimeID.h:5
std
STL namespace.
src
mc
legacy
ActorRuntimeID.h
Generated on Sat Apr 26 2025 05:55:45 for LeviLamina by
1.12.0