LeviLamina
Loading...
Searching...
No Matches
CameraCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7
8// auto generated forward declare list
9// clang-format off
10class BaseGameVersion;
11class CameraPresets;
12class CommandOrigin;
13class CommandOutput;
14class CommandRegistry;
15class Experiments;
18namespace SharedTypes::v1_21_90 { struct CameraPreset; }
19// clang-format on
20
21class CameraCommand : public ::Command {
22public:
23 // CameraCommand inner types define
24 enum class CameraCommandOption : uchar {
25 None = 0,
26 Set = 1,
27 Ease = 2,
28 Pos = 3,
29 Rot = 4,
30 FovSet = 5,
31 FovClear = 6,
32 Facing = 7,
33 AttachToEntity = 8,
34 DetachFromEntity = 9,
35 TargetEntity = 10,
36 TargetOffset = 11,
37 RemoveTarget = 12,
38 ViewOffset = 13,
39 EntityOffset = 14,
40 Default = 15,
41 Clear = 16,
42 Fade = 17,
43 Time = 18,
44 Color = 19,
45 };
46
47public:
48 // member variables
49 // NOLINTBEGIN
93 // NOLINTEND
94
95public:
96 // prevent constructor by default
97 CameraCommand& operator=(CameraCommand const&);
98 CameraCommand(CameraCommand const&);
99
100public:
101 // virtual functions
102 // NOLINTBEGIN
103 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
104
105#ifdef LL_PLAT_S
106 virtual ~CameraCommand() /*override*/;
107#else // LL_PLAT_C
108 virtual ~CameraCommand() /*override*/ = default;
109#endif
110
111 // NOLINTEND
112
113public:
114 // member functions
115 // NOLINTBEGIN
116 MCAPI CameraCommand();
117
118 MCAPI void forEachSelectedPlayersCameraStates(
119 ::CommandOrigin const& origin,
120 ::std::function<void(::ServerCameraStatesComponent&)> callback
121 ) const;
122
123 MCAPI bool prepareInstruction(
124 ::CameraInstruction& cameraInstruction,
125 ::CameraPresets const& cameraPresets,
126 ::CommandOrigin const& origin,
127 ::CommandOutput& output,
128 ::Experiments const& experiments,
129 ::BaseGameVersion const& baseGameVersion
130 ) const;
131 // NOLINTEND
132
133public:
134 // static functions
135 // NOLINTBEGIN
136 MCAPI static bool resolveInheritance(
137 ::std::string& currentPresetName,
138 ::std::string const& parentToStopAt,
139 ::std::vector<::SharedTypes::v1_21_90::CameraPreset> const& presetList
140 );
141
142 MCAPI static void setup(::CommandRegistry& registry, ::Experiments const* experiments);
143 // NOLINTEND
144
145public:
146 // static variables
147 // NOLINTBEGIN
148 MCAPI static char const*& ENUM_OPTION_ATTACH_TO_ENTITY();
149
150 MCAPI static char const*& ENUM_OPTION_CLEAR();
151
152 MCAPI static char const*& ENUM_OPTION_COLOR();
153
154 MCAPI static char const*& ENUM_OPTION_DEFAULT();
155
156 MCAPI static char const*& ENUM_OPTION_DETACH_FROM_ENTITY();
157
158 MCAPI static char const*& ENUM_OPTION_EASE();
159
160 MCAPI static char const*& ENUM_OPTION_ENTITY_OFFSET();
161
162 MCAPI static char const*& ENUM_OPTION_FACING();
163
164 MCAPI static char const*& ENUM_OPTION_FADE();
165
166 MCAPI static char const*& ENUM_OPTION_FOV();
167
168 MCAPI static char const*& ENUM_OPTION_FOV_CLEAR();
169
170 MCAPI static char const*& ENUM_OPTION_POS();
171
172 MCAPI static char const*& ENUM_OPTION_ROT();
173
174 MCAPI static char const*& ENUM_OPTION_SET();
175
176 MCAPI static char const*& ENUM_OPTION_TARGET();
177
178 MCAPI static char const*& ENUM_OPTION_TARGET_OFFSET();
179
180 MCAPI static char const*& ENUM_OPTION_TARGET_REMOVE();
181
182 MCAPI static char const*& ENUM_OPTION_TIME();
183
184 MCAPI static char const*& ENUM_OPTION_VIEW_OFFSET();
185
186 MCAPI static char const*& OPTION_ATTACH_TO_ENTITY();
187
188 MCAPI static char const*& OPTION_CLEAR();
189
190 MCAPI static char const*& OPTION_COLOR();
191
192 MCAPI static char const*& OPTION_DEFAULT();
193
194 MCAPI static char const*& OPTION_DETACH_FROM_ENTITY();
195
196 MCAPI static char const*& OPTION_EASE();
197
198 MCAPI static char const*& OPTION_ENTITY_OFFSET();
199
200 MCAPI static char const*& OPTION_FACING();
201
202 MCAPI static char const*& OPTION_FADE();
203
204 MCAPI static char const*& OPTION_FOV();
205
206 MCAPI static char const*& OPTION_FOV_CLEAR();
207
208 MCAPI static char const*& OPTION_POS();
209
210 MCAPI static char const*& OPTION_ROT();
211
212 MCAPI static char const*& OPTION_SET();
213
214 MCAPI static char const*& OPTION_TARGET();
215
216 MCAPI static char const*& OPTION_TARGET_OFFSET();
217
218 MCAPI static char const*& OPTION_TARGET_REMOVE();
219
220 MCAPI static char const*& OPTION_TIME();
221
222 MCAPI static char const*& OPTION_VIEW_OFFSET();
223
224 MCAPI static ::BaseGameVersion const& REMOVE_IGNORE_STARTING_VALUE_COMPONENT_VERSION();
225 // NOLINTEND
226
227public:
228 // constructor thunks
229 // NOLINTBEGIN
230 MCAPI void* $ctor();
231 // NOLINTEND
232
233public:
234 // destructor thunk
235 // NOLINTBEGIN
236 MCAPI void $dtor();
237 // NOLINTEND
238
239public:
240 // virtual function thunks
241 // NOLINTBEGIN
242 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
243
244
245 // NOLINTEND
246
247public:
248 // vftables
249 // NOLINTBEGIN
250 MCNAPI static void** $vftable();
251 // NOLINTEND
252};
Definition BaseGameVersion.h:8
static MCAPI void ** $vftable()
Definition CameraPresets.h:22
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
Definition Experiments.h:14
Definition Pos.h:5
Definition CameraInstruction.h:21
Definition ServerCameraStatesComponent.h:10
Definition CameraPreset.h:23
Definition Alias.h:14