LeviLamina
Loading...
Searching...
No Matches
ActorUniqueID.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
6public:
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
13public:
14 // member variables
15 // NOLINTBEGIN
16 int64 rawID;
17 // NOLINTEND
18
19public:
20 // member functions
21 // NOLINTBEGIN
22 MCAPI uint64 getHash() const;
23
24#ifdef LL_PLAT_C
25 MCFOLD ::std::string toString() const;
26#endif
27 // NOLINTEND
28
29public:
30 // static variables
31 // NOLINTBEGIN
32 MCAPI static ::ActorUniqueID const& INVALID_ID();
33 // NOLINTEND
34};
35
36namespace std {
37template <>
38class hash<ActorUniqueID> {
39public:
40 size_t operator()(ActorUniqueID const& id) const { return id.getHash(); }
41};
42} // namespace std
STL namespace.
Definition ActorUniqueID.h:5