2016-01-12 03:41:44 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketChatMessage.hpp"
|
|
|
|
|
2016-10-17 12:54:36 +00:00
|
|
|
mwmp::PacketChatMessage::PacketChatMessage(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
|
|
|
packetID = ID_CHAT_MESSAGE;
|
2017-05-08 16:38:48 +00:00
|
|
|
orderChannel = CHANNEL_SYSTEM;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void mwmp::PacketChatMessage::Packet(RakNet::BitStream *newBitstream, bool send)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2019-12-04 08:17:33 +00:00
|
|
|
PlayerPacket::Packet(newBitstream, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2017-01-25 15:06:15 +00:00
|
|
|
RW(player->chatMessage, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|