LeviLamina
Loading...
Searching...
No Matches
CameraInstruction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/EasingType.h"
7#include "mc/platform/Result.h"
8
9// auto generated forward declare list
10// clang-format off
11class BinaryStream;
13class Vec3;
14namespace cereal { struct ReflectionCtx; }
15// clang-format on
16
18public:
19 // CameraInstruction inner types declare
20 // clang-format off
21 struct FadeInstruction;
22 struct SetInstruction;
23 struct TargetInstruction;
24 // clang-format on
25
26 // CameraInstruction inner types define
28 public:
29 // SetInstruction inner types declare
30 // clang-format off
31 struct EaseOption;
32 struct EntityOffsetOption;
33 struct FacingOption;
34 struct PosOption;
35 struct RotOption;
36 struct ViewOffsetOption;
37 // clang-format on
38
39 // SetInstruction inner types define
40 struct EaseOption {
41 public:
42 // member variables
43 // NOLINTBEGIN
44 ::ll::TypedStorage<4, 4, ::EasingType> mEasingType;
45 ::ll::TypedStorage<4, 4, float> mEasingTime;
46 // NOLINTEND
47
48 public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::EaseOption>
52 read(::ReadOnlyBinaryStream& stream);
53 // NOLINTEND
54 };
55
56 struct PosOption {
57 public:
58 // member variables
59 // NOLINTBEGIN
60 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
61 // NOLINTEND
62
63 public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::PosOption>
67 read(::ReadOnlyBinaryStream& stream);
68 // NOLINTEND
69 };
70
71 struct RotOption {
72 public:
73 // member variables
74 // NOLINTBEGIN
75 ::ll::TypedStorage<4, 4, float> mRotX;
76 ::ll::TypedStorage<4, 4, float> mRotY;
77 // NOLINTEND
78
79 public:
80 // static functions
81 // NOLINTBEGIN
82 MCAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::RotOption>
83 read(::ReadOnlyBinaryStream& stream);
84 // NOLINTEND
85 };
86
88 public:
89 // member variables
90 // NOLINTBEGIN
93 // NOLINTEND
94
95 public:
96 // prevent constructor by default
97 ViewOffsetOption& operator=(ViewOffsetOption const&);
100
101 public:
102 // static functions
103 // NOLINTBEGIN
104 MCAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::ViewOffsetOption>
105 read(::ReadOnlyBinaryStream& stream);
106 // NOLINTEND
107 };
108
110 public:
111 // member variables
112 // NOLINTBEGIN
116 // NOLINTEND
117
118 public:
119 // prevent constructor by default
120 EntityOffsetOption& operator=(EntityOffsetOption const&);
123
124 public:
125 // static functions
126 // NOLINTBEGIN
127 MCAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::EntityOffsetOption>
128 read(::ReadOnlyBinaryStream& stream);
129 // NOLINTEND
130 };
131
133 public:
134 // member variables
135 // NOLINTBEGIN
136 ::ll::TypedStorage<4, 12, ::Vec3> mFacingPos;
137 // NOLINTEND
138
139 public:
140 // static functions
141 // NOLINTBEGIN
142 MCAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::FacingOption>
143 read(::ReadOnlyBinaryStream& stream);
144 // NOLINTEND
145 };
146
147 public:
148 // member variables
149 // NOLINTBEGIN
150 ::ll::TypedStorage<4, 4, uint> mPresetIndex;
151 ::ll::TypedStorage<4, 12, ::std::optional<::CameraInstruction::SetInstruction::EaseOption>> mEase;
152 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::SetInstruction::PosOption>> mPos;
153 ::ll::TypedStorage<4, 12, ::std::optional<::CameraInstruction::SetInstruction::RotOption>> mRot;
154 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::SetInstruction::FacingOption>> mFacing;
155 ::ll::TypedStorage<4, 12, ::std::optional<::CameraInstruction::SetInstruction::ViewOffsetOption>> mViewOffset;
156 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::SetInstruction::EntityOffsetOption>>
157 mEntityOffset;
158 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mDefault;
159 // NOLINTEND
160
161 public:
162 // member functions
163 // NOLINTBEGIN
164 MCAPI bool operator==(::CameraInstruction::SetInstruction const& other) const;
165
166 MCAPI void write(::BinaryStream& stream) const;
167 // NOLINTEND
168
169 public:
170 // static functions
171 // NOLINTBEGIN
172 MCAPI static void bindType(::cereal::ReflectionCtx& ctx);
173
174 MCAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction> read(::ReadOnlyBinaryStream& stream);
175 // NOLINTEND
176 };
177
179 public:
180 // FadeInstruction inner types declare
181 // clang-format off
182 struct ColorOption;
183 struct TimeOption;
184 // clang-format on
185
186 // FadeInstruction inner types define
187 struct TimeOption {
188 public:
189 // member variables
190 // NOLINTBEGIN
191 ::ll::TypedStorage<4, 4, float> mFadeInTime;
192 ::ll::TypedStorage<4, 4, float> mHoldTime;
193 ::ll::TypedStorage<4, 4, float> mFadeOutTime;
194 // NOLINTEND
195
196 public:
197 // static functions
198 // NOLINTBEGIN
199 MCAPI static ::Bedrock::Result<::CameraInstruction::FadeInstruction::TimeOption>
200 read(::ReadOnlyBinaryStream& stream);
201 // NOLINTEND
202 };
203
204 struct ColorOption {
205 public:
206 // member variables
207 // NOLINTBEGIN
208 ::ll::TypedStorage<4, 4, float> mRed;
209 ::ll::TypedStorage<4, 4, float> mGreen;
210 ::ll::TypedStorage<4, 4, float> mBlue;
211 // NOLINTEND
212
213 public:
214 // static functions
215 // NOLINTBEGIN
216 MCAPI static ::Bedrock::Result<::CameraInstruction::FadeInstruction::ColorOption>
217 read(::ReadOnlyBinaryStream& stream);
218 // NOLINTEND
219 };
220
221 public:
222 // member variables
223 // NOLINTBEGIN
224 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::FadeInstruction::TimeOption>> mTime;
225 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::FadeInstruction::ColorOption>> mColor;
226 // NOLINTEND
227
228 public:
229 // static functions
230 // NOLINTBEGIN
231 MCAPI static void bindType(::cereal::ReflectionCtx& ctx);
232
233 MCAPI static ::Bedrock::Result<::CameraInstruction::FadeInstruction> read(::ReadOnlyBinaryStream& stream);
234 // NOLINTEND
235 };
236
238 public:
239 // member variables
240 // NOLINTBEGIN
243 // NOLINTEND
244
245 public:
246 // prevent constructor by default
247 TargetInstruction& operator=(TargetInstruction const&);
250
251 public:
252 // static functions
253 // NOLINTBEGIN
254 MCAPI static ::Bedrock::Result<::CameraInstruction::TargetInstruction> read(::ReadOnlyBinaryStream& stream);
255 // NOLINTEND
256 };
257
258public:
259 // member variables
260 // NOLINTBEGIN
261 ::ll::TypedStorage<4, 96, ::std::optional<::CameraInstruction::SetInstruction>> mSet;
262 ::ll::TypedStorage<8, 32, ::std::optional<::CameraInstruction::TargetInstruction>> mTarget;
263 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mRemoveTarget;
264 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mClear;
265 ::ll::TypedStorage<4, 36, ::std::optional<::CameraInstruction::FadeInstruction>> mFade;
266 // NOLINTEND
267
268public:
269 // member functions
270 // NOLINTBEGIN
271 MCAPI bool operator==(::CameraInstruction const& other) const;
272
273 MCAPI void write(::BinaryStream& stream) const;
274 // NOLINTEND
275
276public:
277 // static functions
278 // NOLINTBEGIN
279 MCAPI static ::Bedrock::Result<::CameraInstruction> read(::ReadOnlyBinaryStream& stream);
280 // NOLINTEND
281};
Definition BinaryStream.h:10
Definition ReadOnlyBinaryStream.h:8
Definition Vec3.h:10
Definition CameraInstruction.h:204
Definition CameraInstruction.h:187
Definition CameraInstruction.h:178
Definition CameraInstruction.h:40
Definition CameraInstruction.h:132
Definition CameraInstruction.h:56
Definition CameraInstruction.h:71
Definition CameraInstruction.h:27
Definition CameraInstruction.h:237
Definition CameraInstruction.h:17
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14