Botcraft
1.21.4
Loading...
Searching...
No Matches
LastSeenMessagesUpdate.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
6
#if PROTOCOL_VERSION < 761
/* < 1.19.3 */
7
#include <vector>
8
9
#include "
protocolCraft/Types/Chat/LastSeenMessagesEntry.hpp
"
10
#endif
11
12
namespace
ProtocolCraft
13
{
14
class
LastSeenMessagesUpdate
:
public
NetworkType
15
{
16
#if PROTOCOL_VERSION < 761
/* < 1.19.3 */
17
SERIALIZED_FIELD
(LastSeen, std::vector<LastSeenMessagesEntry>);
18
SERIALIZED_FIELD
(LastReceived, std::optional<LastSeenMessagesEntry>);
19
#else
20
SERIALIZED_FIELD
(Offset,
VarInt
);
21
SERIALIZED_FIELD
(Acknowledged, std::bitset<20>);
22
#endif
23
DECLARE_READ_WRITE_SERIALIZE
;
24
};
25
}
// ProtocolCraft
26
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
LastSeenMessagesEntry.hpp
NetworkType.hpp
ProtocolCraft::LastSeenMessagesUpdate
Definition
LastSeenMessagesUpdate.hpp:15
ProtocolCraft::LastSeenMessagesUpdate::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
LastSeenMessagesUpdate.hpp:23
ProtocolCraft::LastSeenMessagesUpdate::SERIALIZED_FIELD
SERIALIZED_FIELD(Acknowledged, std::bitset< 20 >)
ProtocolCraft::LastSeenMessagesUpdate::SERIALIZED_FIELD
SERIALIZED_FIELD(Offset, VarInt)
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Types
Chat
LastSeenMessagesUpdate.hpp
Generated by
1.9.8