16struct TextPacketPayload {
26 struct AuthorAndMessage {
30 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
31 ::ll::TypedStorage<8, 32, ::std::string> mAuthor;
32 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
36 AuthorAndMessage& operator=(AuthorAndMessage
const&) =
default;
37 AuthorAndMessage() =
default;
38 AuthorAndMessage(TextPacketType type, std::string
const& author, std::string
const& message)
58 struct MessageAndParams {
62 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
63 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
64 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mParams;
68 MessageAndParams& operator=(MessageAndParams
const&) =
default;
69 MessageAndParams() =
default;
70 MessageAndParams(TextPacketType type, std::string
const& message, std::vector<std::string>
const& params)
94 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
95 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
102 ::ll::TypedStorage<1, 1, bool> mLocalize;
103 ::ll::TypedStorage<8, 32, ::std::string> mXuid;
104 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
105 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredMessage;
123 MCAPI TextPacketPayload(::TextPacketPayload
const&);
125 MCAPI ::std::string
const& getAuthorOrEmpty()
const;
127 MCAPI ::std::string
const& getMessage()
const;
130 MCAPI ::std::vector<::std::string>
const& getParams()
const;
133 MCAPI ::TextPacketType getType()
const;
135 MCAPI ::TextPacketPayload& operator=(::TextPacketPayload&&);
137 MCAPI ::TextPacketPayload& operator=(::TextPacketPayload
const&);
139 MCAPI ~TextPacketPayload();
145 MCAPI
static bool const _shouldHandleTextPacketForPlayer(
150 MCAPI static ::TextPacket createAnnouncement(
151 ::std::string
const& author,
152 ::std::string
const& message,
153 ::std::optional<::std::string> filteredMessage,
154 ::std::string
const& xuid,
155 ::std::string
const& platformId
158 MCAPI static ::TextPacket createChat(
159 ::std::string
const& author,
160 ::std::string
const& message,
161 ::std::optional<::std::string> filteredMessage,
162 ::std::string
const& xuid,
163 ::std::string
const& platformId
166 MCAPI static ::TextPacket
167 createJukeboxPopup(::std::string
const& message, ::std::vector<::std::string>
const& params);
170 MCAPI static ::TextPacket createRaw(::std::string
const& raw);
173 MCAPI static ::TextPacket createRawJsonObjectMessage(::std::string
const& rawJson);
175 MCAPI static ::TextPacket createSystemMessage(::std::string
const& message);
177 MCAPI static ::TextPacket createTextObjectMessage(
179 ::std::string fromXuid,
180 ::std::string fromPlatformId
183 MCAPI static ::TextPacket createTextObjectWhisperMessage(
184 ::std::string
const& message,
185 ::std::string
const& xuid,
186 ::std::string
const& platformId
189 MCAPI static ::TextPacket createTextObjectWhisperMessage(
191 ::std::string
const& xuid,
192 ::std::string
const& platformId
195 MCAPI static ::TextPacket
196 createTranslated(::std::string
const& message, ::std::vector<::std::string>
const& params);
198 MCAPI static ::TextPacket createTranslatedAnnouncement(
199 ::std::string
const& author,
200 ::std::string
const& message,
201 ::std::string
const& xuid,
202 ::std::string
const& platformId
205 MCAPI static ::TextPacket createTranslatedChat(
206 ::std::string
const& author,
207 ::std::string
const& message,
208 ::std::string
const& xuid,
209 ::std::string
const& platformId
212 MCAPI static ::TextPacket createWhisper(
213 ::std::string
const& author,
214 ::std::string
const& message,
215 ::std::optional<::std::string> filteredMessage,
216 ::std::string
const& xuid,
217 ::std::string
const& platformId
224 MCAPI
void* $ctor(::TextPacketPayload
const&);
Definition ResolvedTextObject.h:10
Definition TextPacket.h:19
Definition TextPacketPayload.h:26
Definition TextPacketPayload.h:58
Definition TextPacketPayload.h:90