You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3coop/components/openmw-mp/Packets/Player/PacketChatMessage.cpp

20 lines
443 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;
orderChannel = CHANNEL_SYSTEM;
}
void mwmp::PacketChatMessage::Packet(RakNet::BitStream *bs, bool send)
{
PlayerPacket::Packet(bs, send);
RW(player->chatMessage, send);
}