118 _worldPacket <<
uint8(SlashCmd);
119 _worldPacket <<
int32(_Language);
120 _worldPacket << SenderGUID;
121 _worldPacket <<
uint32(0);
132 _worldPacket <<
uint32(SenderName.length() + 1);
133 _worldPacket << SenderName;
134 TargetGUIDPos = _worldPacket.wpos();
135 _worldPacket << TargetGUID;
136 if (!TargetGUID.IsEmpty() && !TargetGUID.IsPlayer() && !TargetGUID.IsPet())
138 _worldPacket <<
uint32(TargetName.length() + 1);
139 _worldPacket << TargetName;
143 _worldPacket <<
uint32(SenderName.length() + 1);
144 _worldPacket << SenderName;
145 TargetGUIDPos = _worldPacket.wpos();
146 _worldPacket << TargetGUID;
151 TargetGUIDPos = _worldPacket.wpos();
152 _worldPacket << TargetGUID;
153 if (!TargetGUID.IsEmpty() && !TargetGUID.IsPlayer())
155 _worldPacket <<
uint32(TargetName.length() + 1);
156 _worldPacket << TargetName;
161 TargetGUIDPos = _worldPacket.wpos();
162 _worldPacket << TargetGUID;
167 _worldPacket <<
uint32(SenderName.length() + 1);
168 _worldPacket << SenderName;
173 ASSERT(!_Channel.empty());
174 _worldPacket << _Channel;
177 TargetGUIDPos = _worldPacket.wpos();
178 _worldPacket << TargetGUID;
182 _worldPacket <<
uint32(ChatText.length() + 1);
183 _worldPacket << ChatText;
184 _worldPacket <<
uint8(ChatTag);
187 _worldPacket <<
uint32(AchievementID);
189 return &_worldPacket;
void Initialize(ChatMsg chatType, Language language, WorldObject const *sender, WorldObject const *receiver, std::string_view message, uint32 achievementId=0, std::string_view channelName="", LocaleConstant locale=DEFAULT_LOCALE, std::string_view addonPrefix="")
WorldPacket const * Write() override