Botcraft
26.3
Loading...
Searching...
No Matches
PropertyMatcher.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
2
#pragma once
3
#include "
protocolCraft/NetworkType.hpp
"
4
#include "
protocolCraft/Types/Either.hpp
"
5
#include "
protocolCraft/Types/Components/Subtypes/Matcher/ExactMatcher.hpp
"
6
#include "
protocolCraft/Types/Components/Subtypes/Matcher/RangedMatcher.hpp
"
7
8
#include <string>
9
#include <optional>
10
11
namespace
ProtocolCraft
12
{
13
namespace
Components
14
{
15
class
PropertyMatcher
:
public
NetworkType
16
{
17
SERIALIZED_FIELD
(Name, std::string);
18
SERIALIZED_FIELD
(Value,
Either<ProtocolCraft::Components::ExactMatcher, ProtocolCraft::Components::RangedMatcher>
);
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
23
}
24
#endif
Either.hpp
ExactMatcher.hpp
NetworkType.hpp
RangedMatcher.hpp
ProtocolCraft::Components::PropertyMatcher
Definition
PropertyMatcher.hpp:16
ProtocolCraft::Components::PropertyMatcher::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
PropertyMatcher.hpp:20
ProtocolCraft::Components::PropertyMatcher::SERIALIZED_FIELD
SERIALIZED_FIELD(Value, Either< ProtocolCraft::Components::ExactMatcher, ProtocolCraft::Components::RangedMatcher >)
ProtocolCraft::Components::PropertyMatcher::SERIALIZED_FIELD
SERIALIZED_FIELD(Name, std::string)
ProtocolCraft::Either
Definition
Either.hpp:11
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
Subtypes
PropertyMatcher.hpp
Generated by
1.9.8