Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundLoginDisconnectPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4#if PROTOCOL_VERSION < 765 /* < 1.20.3 */
6#endif
7
8namespace ProtocolCraft
9{
10 class ClientboundLoginDisconnectPacket : public BaseMessage<ClientboundLoginDisconnectPacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Login Disconnect";
14
15#if PROTOCOL_VERSION < 765 /* < 1.20.3 */
16 SERIALIZED_FIELD(Reason, Chat);
17#else
18 SERIALIZED_FIELD(Reason, std::string);
19#endif
20
22 };
23}
#define SERIALIZED_FIELD(Name,...)