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& operator=(AuthorAndMessage
const&) =
default;
35 AuthorAndMessage(AuthorAndMessage
const&) =
default;
36 AuthorAndMessage() =
default;
37 AuthorAndMessage(TextPacketType type, std::string
const& author, std::string
const& message)
49 struct MessageAndParams {
53 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
54 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
55 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mParams;
59 MessageAndParams(TextPacketType type, std::string
const& message, std::vector<std::string>
const& params)
75 ::ll::TypedStorage<1, 1, ::TextPacketType> mType;
76 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
83 ::ll::TypedStorage<1, 1, bool> mLocalize;
84 ::ll::TypedStorage<8, 32, ::std::string> mXuid;
85 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
86 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredMessage;
99 TextPacketPayload& operator=(TextPacketPayload
const&);
100 TextPacketPayload(TextPacketPayload
const&);
106 MCAPI ::TextPacketPayload& operator=(::TextPacketPayload&&);
108 MCAPI ~TextPacketPayload();
114 MCAPI static ::TextPacket createAnnouncement(
115 ::std::string
const& author,
116 ::std::string
const& message,
117 ::std::optional<::std::string> filteredMessage,
118 ::std::string
const& xuid,
119 ::std::string
const& platformId
122 MCAPI static ::TextPacket createChat(
123 ::std::string
const& author,
124 ::std::string
const& message,
125 ::std::optional<::std::string> filteredMessage,
126 ::std::string
const& xuid,
127 ::std::string
const& platformId
130 MCAPI static ::TextPacket
131 createJukeboxPopup(::std::string
const& message, ::std::vector<::std::string>
const& params);
134 MCAPI static ::TextPacket createRaw(::std::string
const& raw);
137 MCAPI static ::TextPacket createRawJsonObjectMessage(::std::string
const& rawJson);
139 MCAPI static ::TextPacket createSystemMessage(::std::string
const& message);
141 MCAPI static ::TextPacket createTextObjectMessage(
143 ::std::string fromXuid,
144 ::std::string fromPlatformId
147 MCAPI static ::TextPacket createTextObjectWhisperMessage(
148 ::std::string
const& message,
149 ::std::string
const& xuid,
150 ::std::string
const& platformId
153 MCAPI static ::TextPacket createTextObjectWhisperMessage(
155 ::std::string
const& xuid,
156 ::std::string
const& platformId
159 MCAPI static ::TextPacket
160 createTranslated(::std::string
const& message, ::std::vector<::std::string>
const& params);
162 MCAPI static ::TextPacket createTranslatedAnnouncement(
163 ::std::string
const& author,
164 ::std::string
const& message,
165 ::std::string
const& xuid,
166 ::std::string
const& platformId
169 MCAPI static ::TextPacket createTranslatedChat(
170 ::std::string
const& author,
171 ::std::string
const& message,
172 ::std::string
const& xuid,
173 ::std::string
const& platformId
176 MCAPI static ::TextPacket createWhisper(
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
Definition ResolvedTextObject.h:5
Definition TextPacket.h:19
Definition TextPacketPayload.h:24
Definition TextPacketPayload.h:49
Definition TextPacketPayload.h:71