2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 06.03.16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#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-03-06 09:44:08 +00:00
|
|
|
void mwmp::PacketChatMessage::Packet(RakNet::BitStream *bs, bool send)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-03-06 09:44:08 +00:00
|
|
|
PlayerPacket::Packet(bs, 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
|
|
|
}
|