Botcraft 1.21.4
Loading...
Searching...
No Matches
ServerboundChatCommandPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
2#pragma once
3
4#include <string>
5#include <map>
6#include <vector>
7
9
10#if PROTOCOL_VERSION > 759 /* > 1.19 */
12#endif
13
14namespace ProtocolCraft
15{
16 class ServerboundChatCommandPacket : public BaseMessage<ServerboundChatCommandPacket>
17 {
18 public:
19 static constexpr std::string_view packet_name = "Chat Command";
20
21#if PROTOCOL_VERSION < 760 /* < 1.19.1 */
22 SERIALIZED_FIELD(Command, std::string);
23 SERIALIZED_FIELD(Timestamp, long long int);
24 SERIALIZED_FIELD(ArgumentSignatures, std::map<std::string, std::vector<unsigned char>>);
25 SERIALIZED_FIELD(SignedPreview, bool);
26#elif PROTOCOL_VERSION < 761 /* < 1.19.3 */
27 SERIALIZED_FIELD(Command, std::string);
28 SERIALIZED_FIELD(Timestamp, long long int);
29 SERIALIZED_FIELD(Salt, long long int);
30 SERIALIZED_FIELD(ArgumentSignatures, std::map<std::string, std::vector<unsigned char>>);
31 SERIALIZED_FIELD(SignedPreview, bool);
33#elif PROTOCOL_VERSION < 766 /* < 1.20.5 */
34 SERIALIZED_FIELD(Command, std::string);
35 SERIALIZED_FIELD(Timestamp, long long int);
36 SERIALIZED_FIELD(Salt, long long int);
37 SERIALIZED_FIELD(ArgumentSignatures, std::map<std::string, std::vector<unsigned char>>);
39#else
40 SERIALIZED_FIELD(Command, std::string);
41#endif
43 };
44} //ProtocolCraft
45#endif
#define SERIALIZED_FIELD(Name,...)