3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/screens/controllers/ClientInstanceScreenController.h"
9#include "mc/client/gui/screens/controllers/CodeScreenControllerProxy.h"
10#include "mc/client/gui/screens/controllers/UriData.h"
11#include "mc/deps/code_builder/platform/WebviewObserver.h"
12#include "mc/events/OpenCodeMethod.h"
19namespace Json {
class Value; }
27 enum class ModalView :
int {
34 AzurenotebooksDeprecated = 6,
40 ::ll::TypedStorage<8, 40, ::UriData> mChosenUrl;
41 ::ll::TypedStorage<4, 4, ::CodeScreenController::ModalView> mModalView;
42 ::ll::TypedStorage<4, 4, ::OpenCodeMethod> mOpenMethod;
43 ::ll::TypedStorage<8, 32, ::std::string> mMakeCodeUri;
44 ::ll::TypedStorage<1, 1, bool> mNeedsRefresh;
45 ::ll::TypedStorage<1, 1, bool> mWebviewLoading;
46 ::ll::TypedStorage<1, 1, bool> mHasDefaultUri;
47 ::ll::TypedStorage<1, 1, bool> mHasOverrideUri;
48 ::ll::TypedStorage<1, 1, bool> mShowMenu;
49 ::ll::TypedStorage<1, 1, bool> mShowTynkerDeprecated;
50 ::ll::TypedStorage<1, 1, bool> mShowAZNBDeprecated;
55 CodeScreenController();
60 virtual ~CodeScreenController() ;
62 virtual void onInit() ;
64 virtual void onDelete() ;
66 virtual void addStaticScreenVars(::Json::Value& globalVars) ;
68 virtual ::ScreenControllerProxy* getProxy() ;
70 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) ;
72 virtual ::ui::DirtyFlag tick() ;
74 virtual void onLoadingBegin() ;
76 virtual void onLoadingEnd() ;
78 virtual void onError(::WebviewError
const& error) ;
80 virtual void onWebviewChanged() ;
86 MCAPI CodeScreenController(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
88 MCAPI
bool _deviceHasEnoughMemory()
const;
90 MCAPI
void _registerBindings();
92 MCAPI
void _registerEventHandlers();
94 MCAPI
void _selectEditor(::std::string
const& url);
100 MCAPI
static bool validateUri(::std::string
const& uri);
106 MCAPI
void* $ctor(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
118 MCAPI
void $onInit();
120 MCAPI
void $onDelete();
122 MCAPI
void $addStaticScreenVars(::Json::Value& globalVars);
124 MCAPI ::ScreenControllerProxy* $getProxy();
126 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
128 MCAPI ::ui::DirtyFlag $tick();
134 MCAPI
void $onError(::WebviewError
const& error);
Definition ClientInstanceScreenController.h:5
Definition ClientInstanceScreenModel.h:5
Definition CodeScreenControllerProxy.h:5
Definition CodeScreenController.h:5
static MCAPI void ** $vftableForCodeScreenControllerProxy()
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForWebviewObserver()
Definition ScreenControllerProxy.h:5
Definition WebviewObserver.h:15
MCAPI void $onLoadingBegin()
MCAPI void $onLoadingEnd()
MCAPI void $onWebviewChanged()
Definition WebviewError.h:5