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
5
6#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
7#include <vector>
8
10#endif
11
12namespace ProtocolCraft
13{
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
21 SERIALIZED_FIELD(Acknowledged, std::bitset<20>);
22#endif
24 };
25} // ProtocolCraft
26#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Acknowledged, std::bitset< 20 >)