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/events/OpenCodeMethod.h"
13#include "mc/platform/WebviewObserver.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
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 40, ::UriData> mChosenUrl;
34 ::ll::TypedStorage<4, 4, ::CodeScreenController::ModalView> mModalView;
35 ::ll::TypedStorage<4, 4, ::OpenCodeMethod> mOpenMethod;
36 ::ll::TypedStorage<8, 32, ::std::string> mMakeCodeUri;
37 ::ll::TypedStorage<1, 1, bool> mNeedsRefresh;
38 ::ll::TypedStorage<1, 1, bool> mWebviewLoading;
39 ::ll::TypedStorage<1, 1, bool> mHasDefaultUri;
40 ::ll::TypedStorage<1, 1, bool> mHasOverrideUri;
41 ::ll::TypedStorage<1, 1, bool> mShowMenu;
42 ::ll::TypedStorage<1, 1, bool> mShowTynkerDeprecated;
43 ::ll::TypedStorage<1, 1, bool> mShowAZNBDeprecated;
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 CodeScreenController();
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 virtual ~CodeScreenController() /*override*/;
54
55 virtual void onInit() /*override*/;
56
57 virtual void onDelete() /*override*/;
58
59 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
60
61 virtual ::ScreenControllerProxy* getProxy() /*override*/;
62
63 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification) /*override*/;
64
65 virtual ::ui::DirtyFlag tick() /*override*/;
66
67 virtual void onLoadingBegin() /*override*/;
68
69 virtual void onLoadingEnd() /*override*/;
70
71 virtual void onError(::WebviewError const& error) /*override*/;
72
73 virtual void onWebviewChanged() /*override*/;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCAPI CodeScreenController(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
80
81 MCAPI void _registerBindings();
82
83 MCAPI void _registerEventHandlers();
84
85 MCAPI void _selectEditor(::std::string const& url);
86
87 MCAPI void _setViewOption(::CodeScreenViewOption view);
88 // NOLINTEND
89
90public:
91 // static functions
92 // NOLINTBEGIN
93 MCAPI static bool validateUri(::std::string const& uri);
94 // NOLINTEND
95
96public:
97 // static variables
98 // NOLINTBEGIN
99 MCAPI static ::std::string const& INTERFACE_KEY();
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCAPI void* $ctor(::std::shared_ptr<::ClientInstanceScreenModel> model, ::OpenCodeMethod openMethod);
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCAPI void $dtor();
112 // NOLINTEND
113
114public:
115 // virtual function thunks
116 // NOLINTBEGIN
117 MCAPI void $onInit();
118
119 MCAPI void $onDelete();
120
121 MCAPI void $addStaticScreenVars(::Json::Value& globalVars);
122
123 MCAPI ::ScreenControllerProxy* $getProxy();
124
125 MCAPI ::ui::DirtyFlag $tick();
126
127 MCAPI void $onLoadingBegin();
128
129 MCAPI void $onLoadingEnd();
130
131 MCAPI void $onError(::WebviewError const& error);
132
133 MCFOLD void $onWebviewChanged();
134 // NOLINTEND
135
136public:
137 // vftables
138 // NOLINTBEGIN
139 MCNAPI static void** $vftableForScreenController();
140
142
143 MCNAPI static void** $vftableForWebviewObserver();
144
146 // NOLINTEND
147};
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