LeviLamina
Loading...
Searching...
No Matches
PauseScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/SceneType.h"
9#include "mc/client/gui/ViewRequest.h"
10#include "mc/client/gui/screens/controllers/ClientInstanceScreenController.h"
11#include "mc/client/gui/screens/controllers/ModalScreenButtonId.h"
12#include "mc/client/social/ProfileImageOptions.h"
13#include "mc/deps/core/utility/pub_sub/Subscription.h"
14#include "mc/legacy/ActorUniqueID.h"
15
16// auto generated forward declare list
17// clang-format off
18class Option;
21class PlayerListEntry;
24namespace Json { class Value; }
25namespace Realms { struct World; }
26namespace mce { class UUID; }
27// clang-format on
28
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mClientIds;
34 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SocialButtonScreenController>> mSocialButtonScreenController;
35 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mCurrentClientId;
36 ::ll::TypedStorage<1, 1, bool> mPlayerListInitialized;
37 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UserDataScreenController>> mUserDataScreenController;
38 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::PermissionsScreenController>> mPermissionsScreenController;
39 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PauseScreenModel>> mPauseScreenModel;
40 ::ll::TypedStorage<8, 72, ::Social::ProfileImageOptions> mProfileImage;
41 ::ll::TypedStorage<1, 1, bool> mOldPauseStatus;
42 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnPlayerListEntryRemovedSub;
43 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPauseOptionSubscription;
44 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mTrialModeUpdateSubscription;
45 ::ll::TypedStorage<1, 1, bool> mScoreboardShowing;
46 ::ll::TypedStorage<1, 1, bool> mPersonaEnabled;
47 ::ll::TypedStorage<1, 1, bool> mErrorButtonHovered;
48 ::ll::TypedStorage<4, 4, int> mPreviousMaxPlayerCount;
49 ::ll::TypedStorage<4, 4, int> mFeedUnreadCount;
50 ::ll::TypedStorage<1, 1, bool> mRefreshScreen;
51 ::ll::TypedStorage<1, 1, bool> mIsTrialModeEnabled;
52 ::ll::TypedStorage<1, 1, bool> mOverlaySocialDrawerOnce;
53 // NOLINTEND
54
55public:
56 // prevent constructor by default
57 PauseScreenController();
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 virtual ~PauseScreenController() /*override*/;
63
64 virtual void onOpen() /*override*/;
65
66 virtual void onTerminate() /*override*/;
67
68 virtual void onInit() /*override*/;
69
70 virtual void onEntered() /*override*/;
71
72 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
73
74 virtual ::ui::SceneType getSceneType() const /*override*/;
75
76 virtual ::ui::DirtyFlag tick() /*override*/;
77
78 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) /*override*/;
79
80 virtual ::std::string _getButtonADescription() /*override*/;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI PauseScreenController(::std::shared_ptr<::PauseScreenModel> model, bool overlaySocialDrawerOnce);
87
88 MCFOLD void _displayOpenExternalBrowserDialog(::std::function<void(::ModalScreenButtonId)> callback);
89
90 MCAPI void _getUnreadCount(::Realms::World const& world);
91
92 MCAPI bool _isInviteButtonEnabled() const;
93
94 MCAPI bool _isInviteButtonVisible() const;
95
96 MCAPI bool _isMultiplayerLocked() const;
97
98 MCAPI bool _isProfileButtonAEnabled() const;
99
100 MCAPI bool _isProfileButtonBEnabled() const;
101
102 MCAPI bool _isScreenshotButtonVisible() const;
103
104 MCAPI void _navigateToInviteScreen();
105
106 MCAPI void _navigateToPermissions(::ActorUniqueID const& id);
107
108 MCAPI ::ui::ViewRequest _navigateToProfileOrSkinsScreen();
109
110 MCAPI void _onPlayerListEntryRemoved(
111 ::PlayerListEntry const&,
112 ::std::unordered_map<::mce::UUID, ::PlayerListEntry> const& list
113 );
114
115 MCAPI void _pauseToggleOptionCallback(::Option const& pauseFeatureToggle);
116
117 MCAPI void _populateClientIds();
118
119 MCAPI void _registerBindings();
120
121 MCAPI void _registerConnectors();
122
123 MCAPI void _registerEventHandlers();
124
125 MCAPI void _registerSubControllers();
126
127 MCAPI void _setScreenPauseIntent(bool intent);
128
129 MCAPI bool _showRealmsButtons() const;
130
131 MCAPI void _updateProfileImage();
132 // NOLINTEND
133
134public:
135 // constructor thunks
136 // NOLINTBEGIN
137 MCAPI void* $ctor(::std::shared_ptr<::PauseScreenModel> model, bool overlaySocialDrawerOnce);
138 // NOLINTEND
139
140public:
141 // destructor thunk
142 // NOLINTBEGIN
143 MCAPI void $dtor();
144 // NOLINTEND
145
146public:
147 // virtual function thunks
148 // NOLINTBEGIN
149 MCAPI void $onOpen();
150
151 MCAPI void $onTerminate();
152
153 MCAPI void $onInit();
154
155 MCAPI void $onEntered();
156
157 MCAPI void $addStaticScreenVars(::Json::Value& globalVars);
158
159 MCFOLD ::ui::SceneType $getSceneType() const;
160
161 MCAPI ::ui::DirtyFlag $tick();
162
163 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
164
165 MCFOLD ::std::string $_getButtonADescription();
166 // NOLINTEND
167
168public:
169 // vftables
170 // NOLINTBEGIN
172
173 MCNAPI static void** $vftableForScreenController();
174 // NOLINTEND
175};
Definition ClientInstanceScreenController.h:5
Definition Value.h:16
Definition Option.h:22
Definition PauseScreenController.h:5
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForScreenController()
Definition PauseScreenModel.h:5
Definition PermissionsScreenController.h:5
Definition PlayerListEntry.h:20
Definition SocialButtonScreenController.h:5
Definition UserDataScreenController.h:5
Definition UUID.h:7
Definition World.h:7