#include <ServerboundCustomPayloadPacket.hpp>
|
static constexpr std::string_view | packet_name = "Custom Payload" |
|
|
std::shared_ptr< PluginObject > | ReadParsed (ReadIterator &iter, size_t &length) const |
|
void | WriteParsed (const std::shared_ptr< PluginObject > &parsed, WriteContainer &container) const |
|
std::optional< Json::Value > | SerializeParsed (const std::shared_ptr< PluginObject > &parsed) const |
|
| DEFINE_CONDITION (ParsedDataNull, GetParsedData()==nullptr) |
|
| SERIALIZED_FIELD (Identifier, std::string) |
|
| SERIALIZED_FIELD (ParsedData, Internal::CustomType< std::shared_ptr< PluginObject >, &THIS::ReadParsed, &THIS::WriteParsed, &THIS::SerializeParsed >) |
|
| SERIALIZED_FIELD (RawData, Internal::Conditioned< Internal::Vector< unsigned char, void, 0 >, &THIS::ParsedDataNull >) |
|
◆ DEFINE_CONDITION()
ProtocolCraft::ServerboundCustomPayloadPacket::DEFINE_CONDITION |
( |
ParsedDataNull |
, |
|
|
GetParsedData() |
= =nullptr |
|
) |
| |
|
private |
◆ ReadParsed()
std::shared_ptr< PluginObject > ProtocolCraft::ServerboundCustomPayloadPacket::ReadParsed |
( |
ReadIterator & |
iter, |
|
|
size_t & |
length |
|
) |
| const |
|
inlineprivate |
◆ SERIALIZED_FIELD() [1/3]
ProtocolCraft::ServerboundCustomPayloadPacket::SERIALIZED_FIELD |
( |
Identifier |
, |
|
|
std::string |
|
|
) |
| |
|
private |
◆ SERIALIZED_FIELD() [2/3]
◆ SERIALIZED_FIELD() [3/3]
◆ SerializeParsed()
std::optional< Json::Value > ProtocolCraft::ServerboundCustomPayloadPacket::SerializeParsed |
( |
const std::shared_ptr< PluginObject > & |
parsed | ) |
const |
|
inlineprivate |
◆ WriteParsed()
void ProtocolCraft::ServerboundCustomPayloadPacket::WriteParsed |
( |
const std::shared_ptr< PluginObject > & |
parsed, |
|
|
WriteContainer & |
container |
|
) |
| const |
|
inlineprivate |
◆ DECLARE_READ_WRITE_SERIALIZE
ProtocolCraft::ServerboundCustomPayloadPacket::DECLARE_READ_WRITE_SERIALIZE |
|
private |
◆ packet_name
constexpr std::string_view ProtocolCraft::ServerboundCustomPayloadPacket::packet_name = "Custom Payload" |
|
staticconstexpr |
The documentation for this class was generated from the following file: