2017-04-10 09:38:30 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include <components/openmw-mp/Log.hpp>
|
|
|
|
#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
|
|
|
{
|
2017-06-02 19:42:10 +00:00
|
|
|
RW(actor.position, send, 1);
|
|
|
|
RW(actor.direction, send, 1);
|
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
|
|
|
}
|