LeviLamina
Loading...
Searching...
No Matches
PlayerPermissionsManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/core/utility/pub_sub/Publisher.h"
8#include "mc/deps/core/utility/pub_sub/Subscription.h"
9#include "mc/legacy/ActorUniqueID.h"
10#include "mc/server/commands/PlayerPermissionLevel.h"
11#include "mc/world/actor/player/AbilitiesIndex.h"
12
13// auto generated forward declare list
14// clang-format off
15class Player;
18namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PlayerAbilitiesManager>> mPlayerAbilitiesManager;
26 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PlayerListManager>> mPlayerListManager;
27 ::ll::TypedStorage<8, 64, ::std::function<::Player*()>> mGetPrimaryLocalPlayer;
28 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mCurrentPlayerID;
29 ::ll::TypedStorage<1, 2, ::std::optional<::PlayerPermissionLevel>> mCurrentPlayerPermissionLevel;
30 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::AbilitiesIndex, bool>>> mCurrentPlayerPermissionsList;
31 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::AbilitiesIndex, bool>>> mLocalPlayerPermissionsList;
32 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPlayerAbilitiesSubscription;
33 ::ll::TypedStorage<
34 8,
35 48,
36 ::Bedrock::PubSub::
38 mPlayerPermissionsChangedPublisher;
39 ::ll::TypedStorage<
40 8,
41 48,
43 void(::ActorUniqueID const&, ::std::optional<::PlayerPermissionLevel>),
45 0>>
46 mCachedPlayerPermissionLevelChangedPublisher;
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 0
58
59 // vIndex: 1
60 virtual bool hasPlayerPermissions(::ActorUniqueID playerId) const;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
69 ::std::function<::Player*()> getPrimaryLocalPlayer
70 );
71
72 MCAPI void _loadLocalPermissionsList();
73
74 MCAPI bool loadPlayerPermissions(::ActorUniqueID playerId);
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(
83 ::std::function<::Player*()> getPrimaryLocalPlayer
84 );
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCAPI void $dtor();
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI bool $hasPlayerPermissions(::ActorUniqueID playerId) const;
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCNAPI static void** $vftable();
103 // NOLINTEND
104};
Definition NonOwnerPointer.h:9
Definition Publisher.h:8
Definition PlayerAbilitiesManager.h:14
Definition PlayerListManager.h:23
Definition PlayerPermissionsManager.h:21
static MCAPI void ** $vftable()
Definition Player.h:120
Definition ActorUniqueID.h:5