2017-04-10 09:38:30 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
2019-08-19 18:39:33 +00:00
|
|
|
#include <components/openmw-mp/TimedLog.hpp>
|
2017-04-10 09:38:30 +00:00
|
|
|
#include "PacketActorPosition.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketActorPosition::PacketActorPosition(RakNet::RakPeerInterface *peer) : ActorPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_ACTOR_POSITION;
|
|
|
|
}
|
|
|
|
|
2017-06-02 19:42:10 +00:00
|
|
|
void PacketActorPosition::Actor(BaseActor &actor, bool send)
|
2017-04-10 09:38:30 +00:00
|
|
|
{
|
2018-07-02 18:50:21 +00:00
|
|
|
RW(actor.position, send, true);
|
|
|
|
RW(actor.direction, send, true);
|
2017-04-10 09:38:30 +00:00
|
|
|
|
2017-06-02 19:42:10 +00:00
|
|
|
actor.hasPositionData = true;
|
2017-04-10 09:38:30 +00:00
|
|
|
}
|