1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 17:19:56 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp

22 lines
557 B
C++
Raw Normal View History

#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;
}
2017-06-02 19:42:10 +00:00
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);
}