1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 15:19:55 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp
2019-08-19 21:39:33 +03:00

21 lines
557 B
C++

#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/openmw-mp/TimedLog.hpp>
#include "PacketActorCellChange.hpp"
using namespace mwmp;
PacketActorCellChange::PacketActorCellChange(RakNet::RakPeerInterface *peer) : ActorPacket(peer)
{
packetID = ID_ACTOR_CELL_CHANGE;
}
void PacketActorCellChange::Actor(BaseActor &actor, bool send)
{
RW(actor.cell.mData, send, true);
RW(actor.cell.mName, send, true);
RW(actor.position, send, true);
RW(actor.direction, send, true);
RW(actor.isFollowerCellChange, send);
}