Botcraft
1.21.4
Loading...
Searching...
No Matches
PlayerChatMessage.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 759
/* > 1.19 */
2
#pragma once
3
4
#include "
protocolCraft/NetworkType.hpp
"
5
#include "
protocolCraft/Types/Chat/Chat.hpp
"
6
#include "
protocolCraft/Types/Chat/FilterMask.hpp
"
7
#include "
protocolCraft/Types/Chat/SignedMessageHeader.hpp
"
8
#include "
protocolCraft/Types/Chat/SignedMessageBody.hpp
"
9
10
namespace
ProtocolCraft
11
{
12
class
PlayerChatMessage
:
public
NetworkType
13
{
14
SERIALIZED_FIELD
(SignedHeader,
SignedMessageHeader
);
15
SERIALIZED_FIELD
(HeaderSignature, std::vector<unsigned char>);
16
SERIALIZED_FIELD
(SignedBody,
SignedMessageBody
);
17
SERIALIZED_FIELD
(UnsignedContent, std::optional<Chat>);
18
SERIALIZED_FIELD
(
FilterMask
,
ProtocolCraft::FilterMask
);
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
23
#endif
Chat.hpp
FilterMask.hpp
NetworkType.hpp
SignedMessageBody.hpp
SignedMessageHeader.hpp
ProtocolCraft::FilterMask
Definition
FilterMask.hpp:9
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft::PlayerChatMessage
Definition
PlayerChatMessage.hpp:13
ProtocolCraft::PlayerChatMessage::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
PlayerChatMessage.hpp:20
ProtocolCraft::PlayerChatMessage::SERIALIZED_FIELD
SERIALIZED_FIELD(FilterMask, ProtocolCraft::FilterMask)
ProtocolCraft::PlayerChatMessage::SERIALIZED_FIELD
SERIALIZED_FIELD(SignedBody, SignedMessageBody)
ProtocolCraft::PlayerChatMessage::SERIALIZED_FIELD
SERIALIZED_FIELD(UnsignedContent, std::optional< Chat >)
ProtocolCraft::PlayerChatMessage::SERIALIZED_FIELD
SERIALIZED_FIELD(HeaderSignature, std::vector< unsigned char >)
ProtocolCraft::PlayerChatMessage::SERIALIZED_FIELD
SERIALIZED_FIELD(SignedHeader, SignedMessageHeader)
ProtocolCraft::SignedMessageBody
Definition
SignedMessageBody.hpp:15
ProtocolCraft::SignedMessageHeader
Definition
SignedMessageHeader.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Chat
PlayerChatMessage.hpp
Generated by
1.9.8