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