Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundChatPacket.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/Chat/Chat.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ClientboundChatPacket :
public
BaseMessage<ClientboundChatPacket>
10
{
11
public
:
12
static
constexpr
std::string_view packet_name =
"Chat"
;
13
14
SERIALIZED_FIELD
(Message, Chat);
15
SERIALIZED_FIELD
(Type,
char
);
16
#if PROTOCOL_VERSION > 717
/* > 1.15.2 */
17
SERIALIZED_FIELD
(Sender, UUID);
18
#endif
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
//ProtocolCraft
23
#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
Chat.hpp
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundChatPacket.hpp
Generated by
1.9.8