2017-07-15 06:02:19 +00:00
|
|
|
#include "PacketPlayerShapeshift.hpp"
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketPlayerShapeshift::PacketPlayerShapeshift(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_PLAYER_SHAPESHIFT;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PacketPlayerShapeshift::Packet(RakNet::BitStream *bs, bool send)
|
|
|
|
{
|
|
|
|
PlayerPacket::Packet(bs, send);
|
|
|
|
|
2018-02-01 00:11:45 +00:00
|
|
|
RW(player->scale, send);
|
2017-07-15 06:02:19 +00:00
|
|
|
RW(player->isWerewolf, send);
|
2018-04-05 12:42:06 +00:00
|
|
|
|
|
|
|
RW(player->displayCreatureName, send);
|
2018-07-02 18:50:21 +00:00
|
|
|
RW(player->creatureRefId, send, true);
|
2017-07-15 06:02:19 +00:00
|
|
|
}
|