LeviLamina
Loading...
Searching...
No Matches
CodeScreenController.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/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"
14
15// auto generated forward declare list
16// clang-format off
19struct WebviewError;
20namespace Json { class Value; }
21// clang-format on
22
25 public ::WebviewObserver {
26public:
27 // CodeScreenController inner types define
28 enum class ModalView : int {
29 None = 0,
30 ResetWarning = 1,
31 MemoryWarning = 2,
32 MemoryError = 3,
33 NetworkError = 4,
34 DeprecatedIDEWarning = 5,
35 TynkerDeprecated = 6,
36 AzurenotebooksDeprecated = 7,
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
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;
53 // NOLINTEND
54
55public:
56 // prevent constructor by default
57 CodeScreenController();
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 virtual ~CodeScreenController() /*override*/;
63
64 virtual void onInit() /*override*/;
65
66 virtual void onDelete() /*override*/;
67
68 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
69
70 virtual ::ScreenControllerProxy* getProxy() /*override*/;
71
72 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) /*override*/;
73
74 virtual ::ui::DirtyFlag tick() /*override*/;
75
76 virtual void onLoadingBegin() /*override*/;
77
78 virtual void onLoadingEnd() /*override*/;
79
80 virtual void onError(::WebviewError const& error) /*override*/;
81
82 virtual void onWebviewChanged() /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
88 MCAPI CodeScreenController(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
89
90 MCAPI void _registerBindings();
91
92 MCAPI void _registerEventHandlers();
93
94 MCAPI void _selectEditor(::std::string const& url);
95
96 MCAPI void _setViewOption(::CodeScreenViewOption view);
97 // NOLINTEND
98
99public:
100 // static functions
101 // NOLINTBEGIN
102 MCAPI static bool validateUri(::std::string const& uri);
103 // NOLINTEND
104
105public:
106 // static variables
107 // NOLINTBEGIN
108 MCAPI static ::std::string const& INTERFACE_KEY();
109 // NOLINTEND
110
111public:
112 // constructor thunks
113 // NOLINTBEGIN
114 MCAPI void* $ctor(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
115 // NOLINTEND
116
117public:
118 // destructor thunk
119 // NOLINTBEGIN
120 MCAPI void $dtor();
121 // NOLINTEND
122
123public:
124 // virtual function thunks
125 // NOLINTBEGIN
126 MCAPI void $onInit();
127
128 MCAPI void $onDelete();
129
130 MCAPI void $addStaticScreenVars(::Json::Value& globalVars);
131
132 MCAPI ::ScreenControllerProxy* $getProxy();
133
134 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
135
136 MCAPI ::ui::DirtyFlag $tick();
137
138 MCAPI void $onLoadingBegin();
139
140 MCAPI void $onLoadingEnd();
141
142 MCAPI void $onError(::WebviewError const& error);
143
144 MCFOLD void $onWebviewChanged();
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftableForScreenController();
151
153
154 MCNAPI static void** $vftableForWebviewObserver();
155
157 // NOLINTEND
158};
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 Value.h:16
Definition ScreenControllerProxy.h:5
Definition WebviewObserver.h:15
MCAPI void $onLoadingBegin()
MCAPI void $dtor()
MCAPI void $onLoadingEnd()
MCAPI void $onWebviewChanged()
Definition WebviewError.h:5