LeviLamina
Loading...
Searching...
No Matches
PlayerScoreboardId.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/legacy/ActorUniqueID.h"
5
7public:
8 // member variables
9 // NOLINTBEGIN
10 ::ll::TypedStorage<8, 8, int64> mActorUniqueId;
11 // NOLINTEND
12
13public:
14 bool operator==(PlayerScoreboardId const& rhs) const { return mActorUniqueId == rhs.mActorUniqueId; }
15
16public:
17 // static variables
18 // NOLINTBEGIN
19 MCAPI static ::PlayerScoreboardId const& INVALID();
20 // NOLINTEND
21};
22
23namespace std {
24template <>
25struct hash<PlayerScoreboardId> {
26 size_t operator()(PlayerScoreboardId const& d) const noexcept {
27 return hash<ActorUniqueID>()(ActorUniqueID{d.mActorUniqueId});
28 }
29};
30} // namespace std
STL namespace.
Definition ActorUniqueID.h:5
Definition PlayerScoreboardId.h:6