1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:49:56 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Player/PacketChatMessage.cpp

19 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);
}