Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerInteractiveToolService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
7#include "mc/editor/FloodLiquidType.h"
8#include "mc/editor/InteractiveToolError.h"
9#include "mc/editor/ServerInteractiveToolServiceProvider.h"
10#include "mc/editor/block_utils/BlockUtilityFloodMatchCriteria.h"
11#include "mc/editor/services/IEditorService.h"
12
13// auto generated forward declare list
14// clang-format off
15class BlockPos;
16namespace Editor { class RelativeVolumeListBlockVolume; }
17namespace Editor { class ServiceProviderCollection; }
18namespace Editor::BlockUtils::FloodLevel { struct FloodSearchOptions; }
19namespace Editor::BlockUtils::Task { struct BlockUtilityExtrudeResult; }
20namespace Editor::InteractiveTools { struct FloodCommitResult; }
21// clang-format on
22
23namespace Editor::Services {
24
25class ServerInteractiveToolService : public ::Editor::Services::IEditorService,
27public:
28 // member variables
29 // NOLINTBEGIN
52 // NOLINTEND
53
54public:
55 // prevent constructor by default
56 ServerInteractiveToolService& operator=(ServerInteractiveToolService const&);
57 ServerInteractiveToolService(ServerInteractiveToolService const&);
58 ServerInteractiveToolService();
59
60public:
61 // virtual functions
62 // NOLINTBEGIN
63 virtual ~ServerInteractiveToolService() /*override*/ = default;
64
65 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
66
67 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
68
69 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
70
71 virtual ::std::string_view getServiceName() const /*override*/;
72
73 virtual void supportsSmartFill(::std::function<void(::Scripting::Result_deprecated<bool>)> callback) /*override*/;
74
75 virtual void activateSmartFill(
76 int radius,
77 bool limitToSelection,
78 bool onlyFillExposedSurface,
79 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
80 ) /*override*/;
81
82 virtual void updateSmartFill(
83 int radius,
84 bool limitToSelection,
85 bool onlyFillExposedSurface,
86 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
87 ) /*override*/;
88
89 virtual void commitSmartFill(
90 ::BlockPos target,
91 uchar face,
93 ) /*override*/;
94
95 virtual void supportsExtrude(::std::function<void(::Scripting::Result_deprecated<bool>)> callback) /*override*/;
96
97 virtual void activateExtrude(
98 int faceSize,
99 int layerCount,
100 bool isShrink,
101 ::Editor::BlockUtils::Task::BlockUtilityFloodMatchCriteria criteria,
102 ::std::vector<::std::string> customBlockList,
103 int tolerance,
104 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
105 ) /*override*/;
106
107 virtual void updateExtrude(
108 int faceSize,
109 int layerCount,
110 bool isShrink,
111 ::Editor::BlockUtils::Task::BlockUtilityFloodMatchCriteria criteria,
112 ::std::vector<::std::string> customBlockList,
113 int tolerance,
114 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
115 ) /*override*/;
116
117 virtual void commitExtrude(
118 ::BlockPos target,
119 uchar face,
121 callback
122 ) /*override*/;
123
124 virtual void supportsFlood(::std::function<void(::Scripting::Result_deprecated<bool>)> callback) /*override*/;
125
126 virtual void activateFlood(
127 ::BlockPos targetLocation,
128 int currentLevel,
129 ::Editor::InteractiveTools::FloodLiquidType liquid,
130 bool allowTruncated,
132 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
133 ) /*override*/;
134
135 virtual void updateFlood(
136 ::BlockPos targetLocation,
137 int currentLevel,
138 ::Editor::InteractiveTools::FloodLiquidType liquid,
139 bool allowTruncated,
141 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
142 ) /*override*/;
143
144 virtual void commitFlood(
145 ::BlockPos target,
147 ) /*override*/;
148
149 virtual void resume(::std::function<void(::Scripting::Result_deprecated<void>)> callback) /*override*/;
150
151 virtual void deactivate(::std::function<void(::Scripting::Result_deprecated<void>)> callback) /*override*/;
152 // NOLINTEND
153
154public:
155 // member functions
156 // NOLINTBEGIN
158
159 MCNAPI void _cancelCommitTask(::Editor::InteractiveTools::InteractiveToolError reason);
160
161 MCNAPI void _teardown();
162 // NOLINTEND
163
164public:
165 // static variables
166 // NOLINTBEGIN
167 MCNAPI static ::std::string_view const& SERVICE_NAME();
168 // NOLINTEND
169
170public:
171 // constructor thunks
172 // NOLINTBEGIN
174 // NOLINTEND
175
176public:
177 // virtual function thunks
178 // NOLINTBEGIN
179 MCNAPI ::Scripting::Result_deprecated<void> $init();
180
181 MCNAPI ::Scripting::Result_deprecated<void> $ready();
182
183 MCNAPI ::Scripting::Result_deprecated<void> $quit();
184
185 MCNAPI ::std::string_view $getServiceName() const;
186
187 MCNAPI void $supportsSmartFill(::std::function<void(::Scripting::Result_deprecated<bool>)> callback);
188
190 int radius,
191 bool limitToSelection,
192 bool onlyFillExposedSurface,
193 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
194 );
195
196 MCNAPI void $updateSmartFill(
197 int radius,
198 bool limitToSelection,
199 bool onlyFillExposedSurface,
200 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
201 );
202
203 MCNAPI void $commitSmartFill(
204 ::BlockPos target,
205 uchar face,
207 );
208
209 MCNAPI void $supportsExtrude(::std::function<void(::Scripting::Result_deprecated<bool>)> callback);
210
211 MCNAPI void $activateExtrude(
212 int faceSize,
213 int layerCount,
214 bool isShrink,
215 ::Editor::BlockUtils::Task::BlockUtilityFloodMatchCriteria criteria,
216 ::std::vector<::std::string> customBlockList,
217 int tolerance,
218 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
219 );
220
221 MCNAPI void $updateExtrude(
222 int faceSize,
223 int layerCount,
224 bool isShrink,
225 ::Editor::BlockUtils::Task::BlockUtilityFloodMatchCriteria criteria,
226 ::std::vector<::std::string> customBlockList,
227 int tolerance,
228 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
229 );
230
231 MCNAPI void $commitExtrude(
232 ::BlockPos target,
233 uchar face,
235 callback
236 );
237
238 MCNAPI void $supportsFlood(::std::function<void(::Scripting::Result_deprecated<bool>)> callback);
239
240 MCNAPI void $activateFlood(
241 ::BlockPos targetLocation,
242 int currentLevel,
243 ::Editor::InteractiveTools::FloodLiquidType liquid,
244 bool allowTruncated,
246 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
247 );
248
249 MCNAPI void $updateFlood(
250 ::BlockPos targetLocation,
251 int currentLevel,
252 ::Editor::InteractiveTools::FloodLiquidType liquid,
253 bool allowTruncated,
255 ::std::function<void(::Scripting::Result_deprecated<void>)> callback
256 );
257
258 MCNAPI void $commitFlood(
259 ::BlockPos target,
261 );
262
263 MCNAPI void $resume(::std::function<void(::Scripting::Result_deprecated<void>)> callback);
264
265 MCNAPI void $deactivate(::std::function<void(::Scripting::Result_deprecated<void>)> callback);
266
267
268 // NOLINTEND
269
270public:
271 // vftables
272 // NOLINTBEGIN
273 MCNAPI static void** $vftableForIEditorService();
274
276 // NOLINTEND
277};
278
279} // namespace Editor::Services
Definition BlockPos.h:14
Definition RelativeVolumeListBlockVolume.h:24
Definition ServiceProviderCollection.h:7
Definition IEditorService.h:11
Definition ServerInteractiveToolServiceProvider.h:21
MCAPI void $supportsFlood(::std::function< void(::Scripting::Result_deprecated< bool >)> callback)
MCAPI void _cancelCommitTask(::Editor::InteractiveTools::InteractiveToolError reason)
MCAPI::std::string_view $getServiceName() const
MCAPI ServerInteractiveToolService(::Editor::ServiceProviderCollection &providers)
static MCAPI void ** $vftableForServerInteractiveToolServiceProvider()
MCAPI void $resume(::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI void $updateSmartFill(int radius, bool limitToSelection, bool onlyFillExposedSurface, ::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI ::Scripting::Result_deprecated< void > $init()
MCAPI void $updateExtrude(int faceSize, int layerCount, bool isShrink, ::Editor::BlockUtils::Task::BlockUtilityFloodMatchCriteria criteria, ::std::vector<::std::string > customBlockList, int tolerance, ::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI void $deactivate(::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI void $supportsExtrude(::std::function< void(::Scripting::Result_deprecated< bool >)> callback)
MCAPI void $supportsSmartFill(::std::function< void(::Scripting::Result_deprecated< bool >)> callback)
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI void $activateExtrude(int faceSize, int layerCount, bool isShrink, ::Editor::BlockUtils::Task::BlockUtilityFloodMatchCriteria criteria, ::std::vector<::std::string > customBlockList, int tolerance, ::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI void $updateFlood(::BlockPos targetLocation, int currentLevel, ::Editor::InteractiveTools::FloodLiquidType liquid, bool allowTruncated, ::Editor::BlockUtils::FloodLevel::FloodSearchOptions searchOptions, ::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI ::Scripting::Result_deprecated< void > $ready()
static MCAPI ::std::string_view const & SERVICE_NAME()
MCAPI void $commitSmartFill(::BlockPos target, uchar face, ::std::function< void(::Scripting::Result_deprecated<::Editor::RelativeVolumeListBlockVolume >)> callback)
MCAPI void $activateFlood(::BlockPos targetLocation, int currentLevel, ::Editor::InteractiveTools::FloodLiquidType liquid, bool allowTruncated, ::Editor::BlockUtils::FloodLevel::FloodSearchOptions searchOptions, ::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI void $commitExtrude(::BlockPos target, uchar face, ::std::function< void(::Scripting::Result_deprecated<::Editor::BlockUtils::Task::BlockUtilityExtrudeResult >)> callback)
MCAPI void $activateSmartFill(int radius, bool limitToSelection, bool onlyFillExposedSurface, ::std::function< void(::Scripting::Result_deprecated< void >)> callback)
MCAPI void $commitFlood(::BlockPos target, ::std::function< void(::Scripting::Result_deprecated<::Editor::InteractiveTools::FloodCommitResult >)> callback)
MCAPI void * $ctor(::Editor::ServiceProviderCollection &providers)
Definition Result_deprecated.h:8
Definition BlockUtilityExtrudeResult.h:7
Definition FloodCommitResult.h:7
Definition Alias.h:14