Botcraft 1.21.4
Loading...
Searching...
No Matches
PlayerUpdate.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
2#pragma once
3
7#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
9#endif
10
11namespace ProtocolCraft
12{
13 class PlayerUpdate : public NetworkType
14 {
15 SERIALIZED_FIELD(Name, std::string);
16 SERIALIZED_FIELD(Properties, std::vector<GameProfileProperty>);
17 SERIALIZED_FIELD(GameMode, VarInt);
18 SERIALIZED_FIELD(Latency, VarInt);
19 SERIALIZED_FIELD(DisplayName, std::optional<Chat>);
20#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
21 SERIALIZED_FIELD(ProfilePublicKey, std::optional<ProtocolCraft::ProfilePublicKey>);
22#endif
23
25 };
26} // ProtocolCraft
27#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)