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/CodeScreenViewOption.h"
11#include "mc/client/gui/screens/controllers/UriData.h"
12#include "mc/deps/code_builder/platform/WebviewObserver.h"
13#include "mc/events/OpenCodeMethod.h"
20namespace Json {
class Value; }
28 enum class ModalView :
int {
34 DeprecatedIDEWarning = 5,
36 AzurenotebooksDeprecated = 7,
42 ::ll::TypedStorage<8, 40, ::UriData> mChosenUrl;
43 ::ll::TypedStorage<4, 4, ::CodeScreenController::ModalView> mModalView;
44 ::ll::TypedStorage<4, 4, ::OpenCodeMethod> mOpenMethod;
45 ::ll::TypedStorage<8, 32, ::std::string> mMakeCodeUri;
46 ::ll::TypedStorage<1, 1, bool> mNeedsRefresh;
47 ::ll::TypedStorage<1, 1, bool> mWebviewLoading;
48 ::ll::TypedStorage<1, 1, bool> mHasDefaultUri;
49 ::ll::TypedStorage<1, 1, bool> mHasOverrideUri;
50 ::ll::TypedStorage<1, 1, bool> mShowMenu;
51 ::ll::TypedStorage<1, 1, bool> mShowTynkerDeprecated;
52 ::ll::TypedStorage<1, 1, bool> mShowAZNBDeprecated;
57 CodeScreenController();
62 virtual ~CodeScreenController() ;
64 virtual void onInit() ;
66 virtual void onDelete() ;
68 virtual void addStaticScreenVars(::Json::Value& globalVars) ;
70 virtual ::ScreenControllerProxy* getProxy() ;
72 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) ;
74 virtual ::ui::DirtyFlag tick() ;
76 virtual void onLoadingBegin() ;
78 virtual void onLoadingEnd() ;
80 virtual void onError(::WebviewError
const& error) ;
82 virtual void onWebviewChanged() ;
88 MCAPI CodeScreenController(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
90 MCAPI
void _registerBindings();
92 MCAPI
void _registerEventHandlers();
94 MCAPI
void _selectEditor(::std::string
const& url);
96 MCAPI
void _setViewOption(::CodeScreenViewOption view);
102 MCAPI
static bool validateUri(::std::string
const& uri);
108 MCAPI static ::std::string
const& INTERFACE_KEY();
114 MCAPI
void* $ctor(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
126 MCAPI
void $onInit();
128 MCAPI
void $onDelete();
130 MCAPI
void $addStaticScreenVars(::Json::Value& globalVars);
132 MCAPI ::ScreenControllerProxy* $getProxy();
134 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
136 MCAPI ::ui::DirtyFlag $tick();
142 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