LeviLamina
Loading...
Searching...
No Matches
ScoreboardId.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/legacy/ActorUniqueID.h"
5
6// auto generated forward declare list
7// clang-format off
9// clang-format on
10
12public:
13 // member variables
14 // NOLINTBEGIN
15 ::ll::TypedStorage<8, 8, int64> mRawID;
16 ::ll::TypedStorage<8, 8, ::IdentityDefinition*> mIdentityDef;
17 // NOLINTEND
18
19public:
20 bool operator==(ScoreboardId const& other) const { return mRawID == other.mRawID; }
21
22public:
23 // static variables
24 // NOLINTBEGIN
25 MCAPI static ::ScoreboardId& INVALID();
26 // NOLINTEND
27};
28
29namespace std {
30template <>
31struct hash<::ScoreboardId> {
32 size_t operator()(::ScoreboardId const& id) const noexcept {
33 ActorUniqueID uId{};
34 uId.rawID = id.mRawID;
35 return uId.getHash();
36 }
37};
38} // namespace std
Definition IdentityDefinition.h:10
STL namespace.
Definition ActorUniqueID.h:5
Definition ScoreboardId.h:11