mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 01:49:54 +00:00
1b259e2d33
Created Package system
18 lines
441 B
C++
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);
|
|
}
|