Botcraft
26.3
Loading...
Searching...
No Matches
ClientboundAddPaintingPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION < 759
/* < 1.19 */
2
#pragma once
3
4
#include "
protocolCraft/BasePacket.hpp
"
5
#include "
protocolCraft/Types/NetworkPosition.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ClientboundAddPaintingPacket :
public
BasePacket<ClientboundAddPaintingPacket>
10
{
11
public
:
12
static
constexpr
std::string_view packet_name =
"Add Painting"
;
13
14
SERIALIZED_FIELD
(Id_, VarInt);
15
#if PROTOCOL_VERSION > 47
/* > 1.8.9 */
16
SERIALIZED_FIELD
(Uuid, UUID);
17
#endif
18
#if PROTOCOL_VERSION < 393
/* < 1.13 */
19
SERIALIZED_FIELD
(Title, std::string);
20
#else
21
SERIALIZED_FIELD
(Motive, VarInt);
22
#endif
23
SERIALIZED_FIELD
(Pos, NetworkPosition);
24
SERIALIZED_FIELD
(Direction,
char
);
25
26
DECLARE_READ_WRITE_SERIALIZE
;
27
};
28
}
//ProtocolCraft
29
#endif
DECLARE_READ_WRITE_SERIALIZE
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
Definition
AutoSerializedMacros.hpp:123
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BasePacket.hpp
NetworkPosition.hpp
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Packets
Game
Clientbound
ClientboundAddPaintingPacket.hpp
Generated by
1.9.8