forked from teamnwah/openmw-tes3coop
c8abd11f5d
Additionally, make associated variables clearer, and move associated server script functions next to other shapeshifting functions.
20 lines
514 B
C++
20 lines
514 B
C++
#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);
|
|
|
|
RW(player->scale, send);
|
|
RW(player->isWerewolf, send);
|
|
|
|
RW(player->displayCreatureName, send);
|
|
RW(player->creatureRefId, send, 1);
|
|
}
|