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*/ = default;
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 void _selectEditor(::std::string const& url);
89 // NOLINTEND
90
91public:
92 // static functions
93 // NOLINTBEGIN
94 MCAPI static bool validateUri(::std::string const& uri);
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCAPI void* $ctor(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCAPI void $onInit();
107
108 MCAPI void $onDelete();
109
110 MCAPI void $addStaticScreenVars(::Json::Value& globalVars);
111
112 MCAPI ::ScreenControllerProxy* $getProxy();
113
114 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
115
116 MCAPI ::ui::DirtyFlag $tick();
117
118 MCAPI void $onLoadingBegin();
119
120 MCAPI void $onLoadingEnd();
121
122 MCAPI void $onError(::WebviewError const& error);
123
124 MCAPI void $onWebviewChanged();
125 // NOLINTEND
126};
Definition ClientInstanceScreenController.h:5
Definition ClientInstanceScreenModel.h:5
Definition CodeScreenControllerProxy.h:5
Definition CodeScreenController.h:5
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