Botcraft
1.21.4
Loading...
Searching...
No Matches
SignedMessageBody.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 759
/* > 1.19 */
2
#pragma once
3
4
#include <vector>
5
6
#include "
protocolCraft/NetworkType.hpp
"
7
#if PROTOCOL_VERSION < 761
/* < 1.19.3 */
8
#include "
protocolCraft/Types/Chat/ChatMessageContent.hpp
"
9
#endif
10
#include "
protocolCraft/Types/Chat/LastSeenMessagesEntry.hpp
"
11
12
namespace
ProtocolCraft
13
{
14
class
SignedMessageBody
:
public
NetworkType
15
{
16
#if PROTOCOL_VERSION < 761
/* < 1.19.3 */
17
SERIALIZED_FIELD
(Content, ChatMessageContent);
18
#else
19
SERIALIZED_FIELD
(Content, std::string);
20
#endif
21
SERIALIZED_FIELD
(Timestamp,
long
long
int
);
22
SERIALIZED_FIELD
(Salt,
long
long
int
);
23
SERIALIZED_FIELD
(LastSeen, std::vector<LastSeenMessagesEntry>);
24
25
DECLARE_READ_WRITE_SERIALIZE
;
26
};
27
}
// ProtocolCraft
28
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
ChatMessageContent.hpp
LastSeenMessagesEntry.hpp
NetworkType.hpp
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft::SignedMessageBody
Definition
SignedMessageBody.hpp:15
ProtocolCraft::SignedMessageBody::SERIALIZED_FIELD
SERIALIZED_FIELD(LastSeen, std::vector< LastSeenMessagesEntry >)
ProtocolCraft::SignedMessageBody::SERIALIZED_FIELD
SERIALIZED_FIELD(Content, std::string)
ProtocolCraft::SignedMessageBody::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
SignedMessageBody.hpp:25
ProtocolCraft::SignedMessageBody::SERIALIZED_FIELD
SERIALIZED_FIELD(Salt, long long int)
ProtocolCraft::SignedMessageBody::SERIALIZED_FIELD
SERIALIZED_FIELD(Timestamp, long long int)
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Chat
SignedMessageBody.hpp
Generated by
1.9.8