2016-10-26 21:41:14 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketScriptMemberShort.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2018-05-12 16:40:00 +00:00
|
|
|
PacketScriptMemberShort::PacketScriptMemberShort(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
2016-10-26 21:41:14 +00:00
|
|
|
{
|
|
|
|
packetID = ID_SCRIPT_MEMBER_SHORT;
|
|
|
|
}
|
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
void PacketScriptMemberShort::Object(BaseObject &baseObject, bool send)
|
2016-10-26 21:41:14 +00:00
|
|
|
{
|
2018-05-12 21:42:24 +00:00
|
|
|
RW(baseObject.refId, send);
|
|
|
|
RW(baseObject.index, send);
|
|
|
|
RW(baseObject.shortVal, send);
|
2016-10-26 21:41:14 +00:00
|
|
|
}
|