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