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/deps/core/math/Vec3.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
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 MCNAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::EaseOption>
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 MCNAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::PosOption>
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 MCNAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::RotOption>
84 // NOLINTEND
85 };
86
88 public:
89 // member variables
90 // NOLINTBEGIN
91 ::ll::TypedStorage<4, 4, float> mViewOffsetX;
92 ::ll::TypedStorage<4, 4, float> mViewOffsetY;
93 // NOLINTEND
94
95 public:
96 // static functions
97 // NOLINTBEGIN
98 MCNAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::ViewOffsetOption>
100 // NOLINTEND
101 };
102
104 public:
105 // member variables
106 // NOLINTBEGIN
107 ::ll::TypedStorage<4, 4, float> mEntityOffsetX;
108 ::ll::TypedStorage<4, 4, float> mEntityOffsetY;
109 ::ll::TypedStorage<4, 4, float> mEntityOffsetZ;
110 // NOLINTEND
111
112 public:
113 // static functions
114 // NOLINTBEGIN
115 MCNAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::EntityOffsetOption>
117 // NOLINTEND
118 };
119
121 public:
122 // member variables
123 // NOLINTBEGIN
124 ::ll::TypedStorage<4, 12, ::Vec3> mFacingPos;
125 // NOLINTEND
126
127 public:
128 // static functions
129 // NOLINTBEGIN
130 MCNAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction::FacingOption>
132 // NOLINTEND
133 };
134
135 public:
136 // member variables
137 // NOLINTBEGIN
138 ::ll::TypedStorage<4, 4, uint> mPresetIndex;
139 ::ll::TypedStorage<4, 12, ::std::optional<::CameraInstruction::SetInstruction::EaseOption>> mEase;
140 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::SetInstruction::PosOption>> mPos;
141 ::ll::TypedStorage<4, 12, ::std::optional<::CameraInstruction::SetInstruction::RotOption>> mRot;
142 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::SetInstruction::FacingOption>> mFacing;
143 ::ll::TypedStorage<4, 12, ::std::optional<::CameraInstruction::SetInstruction::ViewOffsetOption>> mViewOffset;
144 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::SetInstruction::EntityOffsetOption>>
145 mEntityOffset;
146 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mDefault;
147 // NOLINTEND
148
149 public:
150 // member functions
151 // NOLINTBEGIN
152 MCNAPI bool operator==(::CameraInstruction::SetInstruction const& other) const;
153
154 MCNAPI void write(::BinaryStream& stream) const;
155 // NOLINTEND
156
157 public:
158 // static functions
159 // NOLINTBEGIN
161
162 MCNAPI static ::Bedrock::Result<::CameraInstruction::SetInstruction> read(::ReadOnlyBinaryStream& stream);
163 // NOLINTEND
164 };
165
167 public:
168 // FadeInstruction inner types declare
169 // clang-format off
170 struct ColorOption;
171 struct TimeOption;
172 // clang-format on
173
174 // FadeInstruction inner types define
175 struct TimeOption {
176 public:
177 // member variables
178 // NOLINTBEGIN
179 ::ll::TypedStorage<4, 4, float> mFadeInTime;
180 ::ll::TypedStorage<4, 4, float> mHoldTime;
181 ::ll::TypedStorage<4, 4, float> mFadeOutTime;
182 // NOLINTEND
183
184 public:
185 // static functions
186 // NOLINTBEGIN
187 MCNAPI static ::Bedrock::Result<::CameraInstruction::FadeInstruction::TimeOption>
189 // NOLINTEND
190 };
191
192 struct ColorOption {
193 public:
194 // member variables
195 // NOLINTBEGIN
196 ::ll::TypedStorage<4, 4, float> mRed;
197 ::ll::TypedStorage<4, 4, float> mGreen;
198 ::ll::TypedStorage<4, 4, float> mBlue;
199 // NOLINTEND
200
201 public:
202 // static functions
203 // NOLINTBEGIN
204 MCNAPI static ::Bedrock::Result<::CameraInstruction::FadeInstruction::ColorOption>
206 // NOLINTEND
207 };
208
209 public:
210 // member variables
211 // NOLINTBEGIN
212 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::FadeInstruction::TimeOption>> mTime;
213 ::ll::TypedStorage<4, 16, ::std::optional<::CameraInstruction::FadeInstruction::ColorOption>> mColor;
214 // NOLINTEND
215
216 public:
217 // static functions
218 // NOLINTBEGIN
220
221 MCNAPI static ::Bedrock::Result<::CameraInstruction::FadeInstruction> read(::ReadOnlyBinaryStream& stream);
222 // NOLINTEND
223 };
224
226 public:
227 // member variables
228 // NOLINTBEGIN
231 // NOLINTEND
232
233 public:
234 // prevent constructor by default
235 TargetInstruction& operator=(TargetInstruction const&);
238
239 public:
240 // static functions
241 // NOLINTBEGIN
242 MCNAPI static ::Bedrock::Result<::CameraInstruction::TargetInstruction> read(::ReadOnlyBinaryStream& stream);
243 // NOLINTEND
244 };
245
246public:
247 // member variables
248 // NOLINTBEGIN
249 ::ll::TypedStorage<4, 96, ::std::optional<::CameraInstruction::SetInstruction>> mSet;
250 ::ll::TypedStorage<8, 32, ::std::optional<::CameraInstruction::TargetInstruction>> mTarget;
251 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mRemoveTarget;
252 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mClear;
253 ::ll::TypedStorage<4, 36, ::std::optional<::CameraInstruction::FadeInstruction>> mFade;
254 // NOLINTEND
255
256public:
257 // member functions
258 // NOLINTBEGIN
259 MCNAPI bool operator==(::CameraInstruction const& other) const;
260
261 MCNAPI void write(::BinaryStream& stream) const;
262 // NOLINTEND
263
264public:
265 // static functions
266 // NOLINTBEGIN
267 MCNAPI static ::Bedrock::Result<::CameraInstruction> read(::ReadOnlyBinaryStream& stream);
268 // NOLINTEND
269};
Definition BinaryStream.h:10
Definition ReadOnlyBinaryStream.h:8
Definition CameraInstruction.h:192
static MCAPI ::Bedrock::Result<::CameraInstruction::FadeInstruction::ColorOption > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:175
static MCAPI ::Bedrock::Result<::CameraInstruction::FadeInstruction::TimeOption > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:166
static MCAPI ::Bedrock::Result<::CameraInstruction::FadeInstruction > read(::ReadOnlyBinaryStream &stream)
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
Definition CameraInstruction.h:40
static MCAPI ::Bedrock::Result<::CameraInstruction::SetInstruction::EaseOption > read(::ReadOnlyBinaryStream &stream)
static MCAPI ::Bedrock::Result<::CameraInstruction::SetInstruction::EntityOffsetOption > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:120
static MCAPI ::Bedrock::Result<::CameraInstruction::SetInstruction::FacingOption > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:56
static MCAPI ::Bedrock::Result<::CameraInstruction::SetInstruction::PosOption > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:71
static MCAPI ::Bedrock::Result<::CameraInstruction::SetInstruction::RotOption > read(::ReadOnlyBinaryStream &stream)
static MCAPI ::Bedrock::Result<::CameraInstruction::SetInstruction::ViewOffsetOption > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:27
MCAPI void write(::BinaryStream &stream) const
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
MCAPI bool operator==(::CameraInstruction::SetInstruction const &other) const
static MCAPI ::Bedrock::Result<::CameraInstruction::SetInstruction > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:225
static MCAPI ::Bedrock::Result<::CameraInstruction::TargetInstruction > read(::ReadOnlyBinaryStream &stream)
Definition CameraInstruction.h:17
MCAPI bool operator==(::CameraInstruction const &other) const
MCAPI void write(::BinaryStream &stream) const
static MCAPI ::Bedrock::Result<::CameraInstruction > read(::ReadOnlyBinaryStream &stream)
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14