14struct TextPacketPayload {
24 struct AuthorAndMessage {
28 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
29 ::ll::TypedStorage<8, 32, ::std::string> mAuthor;
30 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
34 AuthorAndMessage(AuthorAndMessage
const&) =
default;
35 AuthorAndMessage() =
default;
36 AuthorAndMessage(TextPacketType type, std::string
const& author, std::string
const& message)
50 MCAPI ~AuthorAndMessage();
60 struct MessageAndParams {
64 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
65 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
66 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mParams;
70 MessageAndParams(MessageAndParams
const&) =
default;
71 MessageAndParams() =
default;
72 MessageAndParams(TextPacketType type, std::string
const& message, std::vector<std::string>
const& params)
86 MCAPI ~MessageAndParams();
100 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
101 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
105 MessageOnly(MessageOnly
const&) =
default;
106 MessageOnly() =
default;
107 MessageOnly(TextPacketType type, std::string
const& message) : mType(type), mMessage(message) {}
116 MCAPI ~MessageOnly();
129 ::ll::TypedStorage<1, 1, bool> mLocalize;
130 ::ll::TypedStorage<8, 32, ::std::string> mXuid;
131 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
132 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredMessage;
150 MCAPI TextPacketPayload(::TextPacketPayload&&);
152 MCAPI TextPacketPayload(::TextPacketPayload
const&);
154 MCAPI_C ::std::string
const& getAuthorOrEmpty()
const;
156 MCAPI ::std::string
const& getMessage()
const;
158 MCAPI ::TextPacketPayload& operator=(::TextPacketPayload&&);
160 MCAPI ::TextPacketPayload& operator=(::TextPacketPayload
const&);
162 MCAPI ~TextPacketPayload();
168 MCAPI static ::TextPacket createAnnouncement(
169 ::std::string
const& author,
170 ::std::string
const& message,
171 ::std::optional<::std::string> filteredMessage,
172 ::std::string
const& xuid,
173 ::std::string
const& platformId
176 MCAPI static ::TextPacket createChat(
177 ::std::string
const& author,
178 ::std::string
const& message,
179 ::std::optional<::std::string> filteredMessage,
180 ::std::string
const& xuid,
181 ::std::string
const& platformId
184 MCAPI static ::TextPacket createTextObjectMessage(
186 ::std::string fromXuid,
187 ::std::string fromPlatformId
190 MCAPI static ::TextPacket
191 createTranslated(::std::string
const& message, ::std::vector<::std::string>
const& params);
197 MCAPI
void* $ctor(::TextPacketPayload&&);
199 MCAPI
void* $ctor(::TextPacketPayload
const&);
Definition ResolvedTextObject.h:5
Definition TextPacket.h:19
Definition TextPacketPayload.h:24
Definition TextPacketPayload.h:60
Definition TextPacketPayload.h:96