LeviLamina
Loading...
Searching...
No Matches
JoincodeEntryScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/controllers/MinecraftScreenController.h"
7#include "mc/client/social/edu_discovery/Availability.h"
8#include "mc/client/social/edu_discovery/Error.h"
9#include "mc/client/social/edu_discovery/JoinCode.h"
10#include "mc/client/social/edu_discovery/QueryContext.h"
11
12// auto generated forward declare list
13// clang-format off
15namespace EDUDiscovery { struct JoinServerQueryState; }
16// clang-format on
17
19public:
20 // JoincodeEntryScreenController inner types define
21 enum class ActiveScreen : int {
22 None = 0,
23 Entry = 1,
24 Connecting = 2,
25 Error = 3,
26 ServerFound = 4,
27 IPEntry = 5,
28 };
29
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::EDUDiscovery::QueryContext<::EDUDiscovery::JoinServerQueryState>>>
34 mJoinContext;
35 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::EDUDiscovery::QueryContext<::EDUDiscovery::Availability>>>
36 mAvailabilityContext;
37 ::ll::TypedStorage<8, 40, ::EDUDiscovery::Error> mJoinError;
38 ::ll::TypedStorage<8, 32, ::std::string> mHostUsername;
39 ::ll::TypedStorage<8, 32, ::std::string> mWorldName;
40 ::ll::TypedStorage<4, 4, ::JoincodeEntryScreenController::ActiveScreen> mActiveScreen;
41 ::ll::TypedStorage<8, 32, ::EDUDiscovery::JoinCode> mEnteredJoincode;
42 ::ll::TypedStorage<4, 4, int> mHoveredEntry;
43 ::ll::TypedStorage<8, 64, ::std::function<void(::std::string)>> mUpdateIdHeaderText;
44 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mCheckForServiceDialog;
45 ::ll::TypedStorage<1, 1, bool> mServiceRedirectedToIP;
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
50 JoincodeEntryScreenController();
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 virtual ~JoincodeEntryScreenController() /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI JoincodeEntryScreenController(
62 ::std::shared_ptr<::MinecraftScreenModel> model,
63 ::std::string const& popupButtonName
64 );
65
66 MCAPI void _closeActiveScreen(bool fullClose);
67
68 MCAPI void _closeScreen(::std::string const& popupControlId);
69
70 MCAPI void _openConnectingScreen();
71
72 MCAPI void _openEntryScreen();
73
74 MCAPI void _openErrorScreen(::EDUDiscovery::Error const& error);
75
76 MCAPI void _openFoundScreen(::std::string hostUsername, ::std::string worldName);
77
78 MCAPI void _openIPEntryScreen();
79
80 MCAPI void
81 _openScreen(::std::string const& popupControlId, ::std::string const& ttsTitle, ::std::string const& ttsContent);
82
83 MCAPI void _registerEntryScreenBindings();
84
85 MCAPI void _registerEntryScreenHandlers();
86
87 MCAPI void _registerEventHandlers(::std::string const& popupButtonName);
88
89 MCAPI void _registerFoundServerHandlers();
90
91 MCAPI void _requestJoinServer(
92 ::std::function<
93 void(::std::shared_ptr<::JoincodeEntryScreenController>, ::EDUDiscovery::JoinServerQueryState const&)>
94 joinCallback
95 );
96
97 MCAPI void queryJoincode(::std::string const& encodedJoincode);
98 // NOLINTEND
99
100public:
101 // constructor thunks
102 // NOLINTBEGIN
103 MCAPI void* $ctor(::std::shared_ptr<::MinecraftScreenModel> model, ::std::string const& popupButtonName);
104 // NOLINTEND
105
106public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCAPI void $dtor();
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
116
117 MCNAPI static void** $vftableForScreenController();
118 // NOLINTEND
119};
Definition JoincodeEntryScreenController.h:5
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForScreenController()
Definition MinecraftScreenController.h:5
Definition MinecraftScreenModel.h:5
Definition JoinServerQueryState.h:7