openmw-tes3coop/components/openmw-mp/Packets/Object/PacketScriptLocalFloat.cpp

18 lines
467 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketScriptLocalFloat.hpp"
using namespace mwmp;
PacketScriptLocalFloat::PacketScriptLocalFloat(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
{
packetID = ID_SCRIPT_LOCAL_FLOAT;
2017-06-02 19:10:47 +00:00
hasCellData = true;
}
void PacketScriptLocalFloat::Object(BaseObject &baseObject, bool send)
{
ObjectPacket::Object(baseObject, send);
RW(baseObject.index, send);
RW(baseObject.floatVal, send);
}