openmw-tes3coop/components/openmw-mp/Packets/PacketChatMessage.cpp
2016-07-07 23:50:48 +08:00

18 lines
441 B
C++

//
// Created by koncord on 06.03.16.
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketChatMessage.hpp"
mwmp::PacketChatMessage::PacketChatMessage(RakNet::RakPeerInterface *peer) : BasePacket(peer)
{
packetID = ID_CHAT_MESSAGE;
}
void mwmp::PacketChatMessage::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player, bool send)
{
BasePacket::Packet(bs, player, send);
RW(*player->ChatMessage(), send);
}