Botcraft 26.1.2
Loading...
Searching...
No Matches
ClientboundSetTimePacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#if PROTOCOL_VERSION > 774 /* > 1.21.11 */
7
8#include <map>
9#endif
10
11namespace ProtocolCraft
12{
13 class ClientboundSetTimePacket : public BasePacket<ClientboundSetTimePacket>
14 {
15 public:
16 static constexpr std::string_view packet_name = "Set Time";
17
18 SERIALIZED_FIELD(GameTime, long long int);
19#if PROTOCOL_VERSION < 775 /* < 26.1 */
20 SERIALIZED_FIELD(DayTime, long long int);
21#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
22 SERIALIZED_FIELD(TickDayTime, bool);
23#endif
24#else
25 SERIALIZED_FIELD(ClockUpdates, std::map<VarInt, ClockNetworkState>);
26#endif
27
29 };
30} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
static constexpr std::string_view packet_name
SERIALIZED_FIELD(GameTime, long long int)
SERIALIZED_FIELD(ClockUpdates, std::map< VarInt, ClockNetworkState >)