LeviLamina
Loading...
Searching...
No Matches
EditorSettingsService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/ThemeSettingsColorKey.h"
7#include "mc/deps/scripting/runtime/Result.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9#include "mc/editor/serviceproviders/EditorSettingsServiceProvider.h"
10#include "mc/editor/services/IEditorService.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace Bedrock::PubSub { class Subscription; }
15namespace Editor { class ServiceProviderCollection; }
16namespace Editor::Network { class GraphicsSettingsChangedPayload; }
17namespace Editor::Network { class SpeedSettingsChangedPayload; }
18namespace Editor::Network { class ThemeSettingsChangedPayload; }
19namespace Editor::Network { class ThemeSettingsCurrentThemeChangedPayload; }
20namespace Editor::Network { class ThemeSettingsNewThemeCreatedPayload; }
21namespace Editor::Network { class ThemeSettingsThemeColorUpdatedPayload; }
22namespace Editor::Network { class ThemeSettingsThemeDeletedPayload; }
23namespace Editor::Settings { class Graphics; }
24namespace Editor::Settings { class Speed; }
25namespace Editor::Settings { class Theme; }
26namespace Editor::Settings { struct GraphicsProps; }
27namespace Editor::Settings { struct SpeedProps; }
28namespace Editor::Settings { struct ThemeProps; }
29namespace mce { class Color; }
30// clang-format on
31
32namespace Editor::Services {
33
36public:
37 // member variables
38 // NOLINTBEGIN
56 // NOLINTEND
57
58public:
59 // prevent constructor by default
63
64public:
65 // virtual functions
66 // NOLINTBEGIN
67 // vIndex: 0
68 virtual ~EditorSettingsService() /*override*/;
69
70 // vIndex: 1
71 virtual ::Scripting::Result<void> init() /*override*/;
72
73 // vIndex: 3
74 virtual ::Scripting::Result<void> quit() /*override*/;
75
76 // vIndex: 2
77 virtual ::Editor::Settings::Graphics& getGraphicsSettings() /*override*/;
78
79 // vIndex: 1
80 virtual ::Editor::Settings::Graphics const& getGraphicsSettings() const /*override*/;
81
82 // vIndex: 5
83 virtual ::Editor::Settings::Speed& getSpeedSettings() /*override*/;
84
85 // vIndex: 4
86 virtual ::Editor::Settings::Speed const& getSpeedSettings() const /*override*/;
87
88 // vIndex: 8
89 virtual ::Editor::Settings::Theme& getThemeSettings() /*override*/;
90
91 // vIndex: 7
92 virtual ::Editor::Settings::Theme const& getThemeSettings() const /*override*/;
93
94 // vIndex: 3
95 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
96 listenForGraphicsSettingsChanged(::std::function<void(::Editor::Settings::GraphicsProps const&)> func) /*override*/;
97
98 // vIndex: 6
99 virtual ::Bedrock::PubSub::Subscription
100 listenForSpeedSettingsChanged(::std::function<void(::Editor::Settings::SpeedProps const&)> func) /*override*/;
101
102 // vIndex: 9
103 virtual ::Bedrock::PubSub::Subscription
104 listenForThemeSettingsChanged(::std::function<void(::Editor::Settings::ThemeProps const&)> func) /*override*/;
105
106 // vIndex: 10
107 virtual ::Bedrock::PubSub::Subscription
108 listenForCurrentThemeChanged(::std::function<void(::std::string const&)> func) /*override*/;
109
110 // vIndex: 11
111 virtual ::Bedrock::PubSub::Subscription listenForNewThemeCreated(
112 ::std::function<
113 void(::std::string const&, ::std::optional<::std::string> const&, ::std::optional<::std::string> const&)>
114 func
115 ) /*override*/;
116
117 // vIndex: 12
118 virtual ::Bedrock::PubSub::Subscription listenForThemeColorUpdated(
119 ::std::function<void(::std::string const&, ::Editor::Settings::ThemeSettingsColorKey, ::mce::Color const&)> func
120 ) /*override*/;
121
122 // vIndex: 13
123 virtual ::Bedrock::PubSub::Subscription listenForThemeDeleted(::std::function<void(::std::string const&)> func
124 ) /*override*/;
125
126 // vIndex: 7
127 virtual void _handleGraphicsSettingsChangedPayload(::Editor::Network::GraphicsSettingsChangedPayload const&);
128
129 // vIndex: 8
130 virtual void _handleSpeedSettingsChangedPayload(::Editor::Network::SpeedSettingsChangedPayload const&);
131
132 // vIndex: 9
133 virtual void _handleThemeSettingsChangedPayload(::Editor::Network::ThemeSettingsChangedPayload const&);
134
135 // vIndex: 10
136 virtual void
137 _handleThemeSettingsCurrentThemeChangedPayload(::Editor::Network::ThemeSettingsCurrentThemeChangedPayload const&);
138
139 // vIndex: 11
140 virtual void
141 _handleThemeSettingsNewThemeCreatedPayload(::Editor::Network::ThemeSettingsNewThemeCreatedPayload const&);
142
143 // vIndex: 12
144 virtual void
145 _handleThemeSettingsThemeColorUpdatedPayload(::Editor::Network::ThemeSettingsThemeColorUpdatedPayload const&);
146
147 // vIndex: 13
148 virtual void _handleThemeSettingsThemeDeletedPayload(::Editor::Network::ThemeSettingsThemeDeletedPayload const&);
149 // NOLINTEND
150
151public:
152 // member functions
153 // NOLINTBEGIN
155 // NOLINTEND
156
157public:
158 // constructor thunks
159 // NOLINTBEGIN
160 MCAPI void* $ctor(::Editor::ServiceProviderCollection& providers);
161 // NOLINTEND
162
163public:
164 // destructor thunk
165 // NOLINTBEGIN
166 MCAPI void $dtor();
167 // NOLINTEND
168
169public:
170 // virtual function thunks
171 // NOLINTBEGIN
172 MCAPI ::Scripting::Result<void> $init();
173
174 MCFOLD ::Scripting::Result<void> $quit();
175
176 MCFOLD ::Editor::Settings::Graphics& $getGraphicsSettings();
177
178 MCFOLD ::Editor::Settings::Graphics const& $getGraphicsSettings() const;
179
180 MCFOLD ::Editor::Settings::Speed& $getSpeedSettings();
181
182 MCFOLD ::Editor::Settings::Speed const& $getSpeedSettings() const;
183
184 MCFOLD ::Editor::Settings::Theme& $getThemeSettings();
185
186 MCFOLD ::Editor::Settings::Theme const& $getThemeSettings() const;
187
188 MCAPI ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
189 $listenForGraphicsSettingsChanged(::std::function<void(::Editor::Settings::GraphicsProps const&)> func);
190
191 MCAPI ::Bedrock::PubSub::Subscription
192 $listenForSpeedSettingsChanged(::std::function<void(::Editor::Settings::SpeedProps const&)> func);
193
194 MCFOLD ::Bedrock::PubSub::Subscription
195 $listenForThemeSettingsChanged(::std::function<void(::Editor::Settings::ThemeProps const&)> func);
196
197 MCAPI ::Bedrock::PubSub::Subscription $listenForCurrentThemeChanged(::std::function<void(::std::string const&)> func
198 );
199
200 MCAPI ::Bedrock::PubSub::Subscription $listenForNewThemeCreated(
201 ::std::function<
202 void(::std::string const&, ::std::optional<::std::string> const&, ::std::optional<::std::string> const&)>
203 func
204 );
205
206 MCAPI ::Bedrock::PubSub::Subscription $listenForThemeColorUpdated(
207 ::std::function<void(::std::string const&, ::Editor::Settings::ThemeSettingsColorKey, ::mce::Color const&)> func
208 );
209
210 MCAPI ::Bedrock::PubSub::Subscription $listenForThemeDeleted(::std::function<void(::std::string const&)> func);
211
212 MCFOLD void $_handleGraphicsSettingsChangedPayload(::Editor::Network::GraphicsSettingsChangedPayload const&);
213
214 MCFOLD void $_handleSpeedSettingsChangedPayload(::Editor::Network::SpeedSettingsChangedPayload const&);
215
216 MCFOLD void $_handleThemeSettingsChangedPayload(::Editor::Network::ThemeSettingsChangedPayload const&);
217
218 MCFOLD void
219 $_handleThemeSettingsCurrentThemeChangedPayload(::Editor::Network::ThemeSettingsCurrentThemeChangedPayload const&);
220
221 MCFOLD void
222 $_handleThemeSettingsNewThemeCreatedPayload(::Editor::Network::ThemeSettingsNewThemeCreatedPayload const&);
223
224 MCFOLD void
225 $_handleThemeSettingsThemeColorUpdatedPayload(::Editor::Network::ThemeSettingsThemeColorUpdatedPayload const&);
226
227 MCFOLD void $_handleThemeSettingsThemeDeletedPayload(::Editor::Network::ThemeSettingsThemeDeletedPayload const&);
228 // NOLINTEND
229
230public:
231 // vftables
232 // NOLINTBEGIN
233 MCAPI static void** $vftableForEditorSettingsServiceProvider();
234
235 MCAPI static void** $vftableForIEditorService();
236 // NOLINTEND
237};
238
239} // namespace Editor::Services
Definition GraphicsSettingsChangedPayload.h:11
Definition SpeedSettingsChangedPayload.h:11
Definition ThemeSettingsChangedPayload.h:11
Definition ThemeSettingsCurrentThemeChangedPayload.h:11
Definition ThemeSettingsNewThemeCreatedPayload.h:11
Definition ThemeSettingsThemeColorUpdatedPayload.h:11
Definition ThemeSettingsThemeDeletedPayload.h:11
Definition ServiceProviderCollection.h:7
Definition EditorSettingsServiceProvider.h:23
Definition EditorSettingsService.h:35
Definition IEditorService.h:11
Definition Color.h:13
Definition GraphicsProps.h:7
Definition SpeedProps.h:7
Definition ThemeProps.h:13
Definition Alias.h:14