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 // NOLINTEND
24
25public:
26 // static variables
27 // NOLINTBEGIN
28 MCAPI static ::ActorUniqueID const& INVALID_ID();
29 // NOLINTEND
30};
31
32namespace std {
33template <>
34class hash<ActorUniqueID> {
35public:
36 size_t operator()(ActorUniqueID const& id) const { return id.getHash(); }
37};
38} // namespace std
STL namespace.
Definition ActorUniqueID.h:5