mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 19:49:54 +00:00
21 lines
557 B
C++
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);
|
|
}
|