Core/Packets: converted SMSG_MOTD and SMSG_LOGIN_VERIFY_WORLD to packet class

This commit is contained in:
Ovahlord committed 2020-04-11 18:22:01 +02:00
1 parent 61df418204
commit 4539b571bf
9 files changed
+68 -52

No files matched your search

@@ -49,3 +49,14 @@ WorldPacket const* WorldPackets::System::FeatureSystemStatus::Write()
}
return &_worldPacket;
}
WorldPacket const* WorldPackets::System::MOTD::Write()
{
ASSERT(Text);
_worldPacket << int32(Text->size());
for (std::string const& line : *Text)
_worldPacket << line;
return &_worldPacket;
}