Botcraft
1.21.4
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/BaseMessage.hpp
"
5
#include "
protocolCraft/Types/NetworkPosition.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ClientboundAddPaintingPacket :
public
BaseMessage<ClientboundAddPaintingPacket>
10
{
11
public
:
12
static
constexpr
std::string_view packet_name =
"Add Painting"
;
13
14
SERIALIZED_FIELD
(Id_, VarInt);
15
SERIALIZED_FIELD
(Uuid, UUID);
16
#if PROTOCOL_VERSION < 393
/* < 1.13 */
17
SERIALIZED_FIELD
(Title, std::string);
18
#else
19
SERIALIZED_FIELD
(Motive, VarInt);
20
#endif
21
SERIALIZED_FIELD
(Pos, NetworkPosition);
22
SERIALIZED_FIELD
(Direction,
char
);
23
24
DECLARE_READ_WRITE_SERIALIZE
;
25
};
26
}
//ProtocolCraft
27
#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
BaseMessage.hpp
NetworkPosition.hpp
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundAddPaintingPacket.hpp
Generated by
1.9.8