Botcraft 1.21.10
Loading...
Searching...
No Matches
DataComponentTypeResolvableProfile.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
4
5#if PROTOCOL_VERSION < 773 /* < 1.21.9 */
7
8#include <optional>
9#include <string>
10#include <vector>
11#else
16#endif
17
18namespace ProtocolCraft
19{
20 namespace Components
21 {
23 {
24#if PROTOCOL_VERSION < 773 /* < 1.21.9 */
25 SERIALIZED_FIELD(Name, std::optional<std::string>);
26 SERIALIZED_FIELD(Uuid, std::optional<UUID>);
27 SERIALIZED_FIELD(Properties, std::vector<GameProfileProperty>);
28#else
31#endif
32
34 };
35 }
36}
37#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Unpack, Either< GameProfile, PartialResolvableProfile >)