Botcraft
1.21.5
Loading...
Searching...
No Matches
ClientboundGameProfilePacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION < 768
/* < 1.21.2 */
2
#pragma once
3
4
#include "
protocolCraft/BasePacket.hpp
"
5
6
#if PROTOCOL_VERSION > 758
/* > 1.18.2 */
7
#include "
protocolCraft/Types/GameProfile/GameProfile.hpp
"
8
#endif
9
10
namespace
ProtocolCraft
11
{
12
class
ClientboundGameProfilePacket :
public
BasePacket<ClientboundGameProfilePacket>
13
{
14
public
:
15
static
constexpr
std::string_view packet_name =
"Game Profile"
;
16
17
#if PROTOCOL_VERSION < 735
/* < 1.16 */
18
SERIALIZED_FIELD
(Uuid, std::string);
19
SERIALIZED_FIELD
(Username, std::string);
20
#elif PROTOCOL_VERSION < 759
/* < 1.19 */
21
SERIALIZED_FIELD
(Uuid, UUID);
22
SERIALIZED_FIELD
(Username, std::string);
23
#elif PROTOCOL_VERSION < 766
/* < 1.20.5 */
24
SERIALIZED_FIELD
(GameProfile,
ProtocolCraft::GameProfile
);
25
#else
26
SERIALIZED_FIELD
(GameProfile,
ProtocolCraft::GameProfile
);
27
SERIALIZED_FIELD
(StrictErrorHandling,
bool
);
28
#endif
29
DECLARE_READ_WRITE_SERIALIZE
;
30
};
31
}
//ProtocolCraft
32
#endif
DECLARE_READ_WRITE_SERIALIZE
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
Definition
AutoSerializedMacros.hpp:123
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BasePacket.hpp
GameProfile.hpp
ProtocolCraft::GameProfile
Definition
GameProfile.hpp:13
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Packets
Login
Clientbound
ClientboundGameProfilePacket.hpp
Generated by
1.9.8