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
5
6#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
8#endif
9
10namespace 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 */
25#else
27 SERIALIZED_FIELD(StrictErrorHandling, bool);
28#endif
30 };
31} //ProtocolCraft
32#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)