1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 04:49:54 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Object/PacketScriptMemberShort.cpp

17 lines
436 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketScriptMemberShort.hpp"
using namespace mwmp;
PacketScriptMemberShort::PacketScriptMemberShort(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
{
packetID = ID_SCRIPT_MEMBER_SHORT;
}
void PacketScriptMemberShort::Object(BaseObject &baseObject, bool send)
{
RW(baseObject.refId, send);
RW(baseObject.index, send);
RW(baseObject.shortVal, send);
}