2016-10-26 09:25:50 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketScriptLocalShort.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2018-05-12 16:40:00 +00:00
|
|
|
PacketScriptLocalShort::PacketScriptLocalShort(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
2016-10-26 09:25:50 +00:00
|
|
|
{
|
|
|
|
packetID = ID_SCRIPT_LOCAL_SHORT;
|
2017-06-02 19:10:47 +00:00
|
|
|
hasCellData = true;
|
2016-10-26 09:25:50 +00:00
|
|
|
}
|
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
void PacketScriptLocalShort::Object(BaseObject &baseObject, bool send)
|
2016-10-26 09:25:50 +00:00
|
|
|
{
|
2018-05-12 21:42:24 +00:00
|
|
|
ObjectPacket::Object(baseObject, send);
|
|
|
|
RW(baseObject.index, send);
|
|
|
|
RW(baseObject.shortVal, send);
|
2016-10-26 09:25:50 +00:00
|
|
|
}
|