Botcraft
26.3
Loading...
Searching...
No Matches
ServerboundKeepAlivePacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BasePacket.hpp
"
4
5
namespace
ProtocolCraft
6
{
7
class
ServerboundKeepAlivePacket
:
public
BasePacket
<ServerboundKeepAlivePacket>
8
{
9
public
:
10
static
constexpr
std::string_view
packet_name
=
"Keep Alive"
;
11
12
#if PROTOCOL_VERSION < 340
/* < 1.12.2 */
13
SERIALIZED_FIELD
(Id_,
VarInt
);
14
#else
15
SERIALIZED_FIELD
(Id_,
long
long
int
);
16
#endif
17
18
DECLARE_READ_WRITE_SERIALIZE
;
19
};
20
}
//ProtocolCraft
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BasePacket.hpp
ProtocolCraft::BasePacket
Definition
BasePacket.hpp:11
ProtocolCraft::ServerboundKeepAlivePacket
Definition
ServerboundKeepAlivePacket.hpp:8
ProtocolCraft::ServerboundKeepAlivePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Id_, long long int)
ProtocolCraft::ServerboundKeepAlivePacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundKeepAlivePacket.hpp:18
ProtocolCraft::ServerboundKeepAlivePacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundKeepAlivePacket.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Packets
Game
Serverbound
ServerboundKeepAlivePacket.hpp
Generated by
1.9.8