Botcraft 1.21.4
Loading...
Searching...
No Matches
Advancement.hpp
Go to the documentation of this file.
1#pragma once
2
6
7namespace ProtocolCraft
8{
9 class Advancement : public NetworkType
10 {
11 SERIALIZED_FIELD(ParentId, std::optional<Identifier>);
12 SERIALIZED_FIELD(DisplayData, std::optional<AdvancementDisplay>);
13#if PROTOCOL_VERSION < 764 /* < 1.20.2 */
14 SERIALIZED_FIELD(Criteria, std::vector<Identifier>);
15#endif
16 SERIALIZED_FIELD(Requirements, std::vector<std::vector<std::string>>);
17#if PROTOCOL_VERSION > 762 /* > 1.19.4 */
18 SERIALIZED_FIELD(SendsTelemetryEvent, bool);
19#endif
20
22 };
23}
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(ParentId, std::optional< Identifier >)
SERIALIZED_FIELD(SendsTelemetryEvent, bool)
SERIALIZED_FIELD(DisplayData, std::optional< AdvancementDisplay >)
SERIALIZED_FIELD(Requirements, std::vector< std::vector< std::string > >)