Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
EDUWorldsScreenController.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/screens/controllers/SettingsScreenControllerBase.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9
10// auto generated forward declare list
11// clang-format off
12class DlcUIWrapper;
13class IContentManager;
14class PlayScreenModel;
15class UIPropertyBag;
17struct LocalWorldInfo;
19namespace EduCloud { struct IEduCloudSaveSystem; }
20namespace Json { class Value; }
21// clang-format on
22
24public:
25 // EduWorldsScreenController inner types define
26 enum class StartWorldCaller : int {
27 Play = 0,
28 Host = 1,
29 Download = 2,
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PlayScreenModel>> mPlayScreenModel;
36 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::WorldsClipboardScreenController>> mWorldsClipboardScreenController;
37 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::EduCloud::IEduCloudSaveSystem>> mEduCloudSaveSystem;
38 ::ll::TypedStorage<1, 1, bool> mManageActive;
39 ::ll::TypedStorage<1, 1, bool> mMatchedWorldsNeedsRefresh;
40 ::ll::TypedStorage<1, 1, bool> mPlaceholderSelected;
41 ::ll::TypedStorage<1, 1, bool> mChangingScreen;
42 ::ll::TypedStorage<1, 1, bool> mHandlingConflict;
43 ::ll::TypedStorage<1, 1, bool> mSkipNextFetch;
44 ::ll::TypedStorage<1, 1, bool> mWaitingOnWorldCloudChecks;
45 ::ll::TypedStorage<1, 1, bool> mWaitingOnSettingsCloudChecks;
46 ::ll::TypedStorage<8, 32, ::std::string> mSearchString;
47 ::ll::TypedStorage<8, 24, ::std::vector<uint64>> mMatchedWorlds;
48 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DlcUIWrapper>> mDlcUIWrapper;
49 ::ll::TypedStorage<8, 8, ::PackManagerContentSource*> mWorldContentSource;
50 ::ll::TypedStorage<8, 8, ::IContentManager&> mContentManager;
51 ::ll::TypedStorage<4, 4, int> mLastSelectedWorldIndex;
52 // NOLINTEND
53
54public:
55 // prevent constructor by default
56 EduWorldsScreenController& operator=(EduWorldsScreenController const&);
57 EduWorldsScreenController(EduWorldsScreenController const&);
58 EduWorldsScreenController();
59
60public:
61 // virtual functions
62 // NOLINTBEGIN
63 virtual ~EduWorldsScreenController() /*override*/ = default;
64
65 virtual void onOpen() /*override*/;
66
67 virtual void onEntering() /*override*/;
68
69 virtual void onReload() /*override*/;
70
71 virtual void onTerminate() /*override*/;
72
73 virtual ::ui::DirtyFlag tick() /*override*/;
74
75 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCNAPI explicit EduWorldsScreenController(::std::shared_ptr<::PlayScreenModel> model);
82
83 MCNAPI void _closeEduCloudConflictPopup(bool keepLocal);
84
85 MCNAPI void _openWorldSettings(::std::string const& levelId);
86
87 MCNAPI void _openWorldSettings(::LocalWorldInfo* worldInfo);
88
89 MCNAPI void _registerBindings();
90
92
94
96
98
99 MCNAPI void _startWorld(::std::string const& levelId, ::EduWorldsScreenController::StartWorldCaller caller);
100
101 MCNAPI void _startWorld(::LocalWorldInfo* worldInfo, ::EduWorldsScreenController::StartWorldCaller caller);
102 // NOLINTEND
103
104public:
105 // static functions
106 // NOLINTBEGIN
107 MCNAPI static uint64 _getTileIndex(::UIPropertyBag& bag);
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCNAPI void* $ctor(::std::shared_ptr<::PlayScreenModel> model);
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCNAPI void $onOpen();
120
121 MCNAPI void $onEntering();
122
123 MCNAPI void $onReload();
124
125 MCNAPI void $onTerminate();
126
127 MCNAPI ::ui::DirtyFlag $tick();
128
129 MCNAPI void $addStaticScreenVars(::Json::Value& globalVars);
130 // NOLINTEND
131
132public:
133 // vftables
134 // NOLINTBEGIN
135 MCNAPI static void** $vftableForScreenController();
136
138 // NOLINTEND
139};
Definition DlcUIWrapper.h:5
Definition EDUWorldsScreenController.h:5
MCAPI void * $ctor(::std::shared_ptr<::PlayScreenModel > model)
MCAPI void _startWorld(::std::string const &levelId, ::EduWorldsScreenController::StartWorldCaller caller)
MCAPI void _showEduCloudConflictPopup()
MCAPI void _registerSubControllers()
MCAPI void _openWorldSettings(::std::string const &levelId)
MCAPI void _registerControllerCallbacks()
static MCAPI void ** $vftableForScreenController()
MCAPI void _closeEduCloudConflictPopup(bool keepLocal)
MCAPI void _openWorldSettings(::LocalWorldInfo *worldInfo)
MCAPI EduWorldsScreenController(::std::shared_ptr<::PlayScreenModel > model)
MCAPI void _registerBindings()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
MCAPI void _registerEventHandlers()
static MCAPI uint64 _getTileIndex(::UIPropertyBag &bag)
MCAPI::ui::DirtyFlag $tick()
MCAPI void _startWorld(::LocalWorldInfo *worldInfo, ::EduWorldsScreenController::StartWorldCaller caller)
MCAPI void $addStaticScreenVars(::Json::Value &globalVars)
Definition IContentManager.h:5
Definition Value.h:16
Definition PlayScreenModel.h:5
Definition SettingsScreenControllerBase.h:5
Definition UIPropertyBag.h:5
Definition WorldsClipboardScreenController.h:5
Definition IEduCloudSaveSystem.h:7
Definition LocalWorldInfo.h:5
Definition PackManagerContentSource.h:5