forked from mirror/openmw-tes3mp
690211ad99
Move Send and Read functions to BasePacket
18 lines
408 B
C++
18 lines
408 B
C++
//
|
|
// Created by koncord on 06.03.16.
|
|
//
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include "PacketChatMessage.hpp"
|
|
|
|
mwmp::PacketChatMessage::PacketChatMessage(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_CHAT_MESSAGE;
|
|
}
|
|
|
|
void mwmp::PacketChatMessage::Packet(RakNet::BitStream *bs, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, send);
|
|
|
|
RW(player->chatMessage, send);
|
|
}
|