2017-07-10 09:33:53 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketObjectState.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2018-05-12 16:40:00 +00:00
|
|
|
PacketObjectState::PacketObjectState(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
2017-07-10 09:33:53 +00:00
|
|
|
{
|
|
|
|
packetID = ID_OBJECT_STATE;
|
|
|
|
hasCellData = true;
|
|
|
|
}
|
2017-07-13 06:46:30 +00:00
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
void PacketObjectState::Object(BaseObject &baseObject, bool send)
|
2017-07-13 06:46:30 +00:00
|
|
|
{
|
2018-05-12 21:42:24 +00:00
|
|
|
ObjectPacket::Object(baseObject, send);
|
|
|
|
RW(baseObject.objectState, send);
|
2017-07-13 06:46:30 +00:00
|
|
|
}
|