Botcraft
1.21.4
Loading...
Searching...
No Matches
ChatMessageContent.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 759
/* > 1.19 */
&& PROTOCOL_VERSION < 761
/* < 1.19.3 */
2
#pragma once
3
4
#include "
protocolCraft/NetworkType.hpp
"
5
#include "
protocolCraft/Types/Chat/Chat.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ChatMessageContent :
public
NetworkType
10
{
11
SERIALIZED_FIELD
(Plain, std::string);
12
SERIALIZED_FIELD
(Decorated, std::optional<Chat>);
13
14
DECLARE_READ_WRITE_SERIALIZE
;
15
};
16
}
17
#endif
DECLARE_READ_WRITE_SERIALIZE
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
Definition
AutoSerializedMacros.hpp:123
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
Chat.hpp
NetworkType.hpp
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Chat
ChatMessageContent.hpp
Generated by
1.9.8