Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundMoveVehiclePacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#if PROTOCOL_VERSION > 768 /* > 1.21.3 */
6#include <array>
7#endif
8
9namespace ProtocolCraft
10{
11 class ClientboundMoveVehiclePacket : public BaseMessage<ClientboundMoveVehiclePacket>
12 {
13 public:
14 static constexpr std::string_view packet_name = "Move Vehicle";
15
16#if PROTOCOL_VERSION < 769 /* < 1.21.4 */
17 SERIALIZED_FIELD(X, double);
18 SERIALIZED_FIELD(Y, double);
19 SERIALIZED_FIELD(Z, double);
20#else
21 SERIALIZED_FIELD(Position, std::array<double, 3>);
22#endif
23 SERIALIZED_FIELD(YRot, float);
24 SERIALIZED_FIELD(XRot, float);
25
27 };
28} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Position, std::array< double, 3 >)