2018-01-29 20:32:51 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketScriptGlobalFloat.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2018-05-12 16:40:00 +00:00
|
|
|
PacketScriptGlobalFloat::PacketScriptGlobalFloat(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
2018-01-29 20:32:51 +00:00
|
|
|
{
|
|
|
|
packetID = ID_SCRIPT_GLOBAL_FLOAT;
|
|
|
|
}
|
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
void PacketScriptGlobalFloat::Object(BaseObject &baseObject, bool send)
|
2018-01-29 20:32:51 +00:00
|
|
|
{
|
2018-05-12 21:42:24 +00:00
|
|
|
RW(baseObject.varName, send);
|
|
|
|
RW(baseObject.floatVal, send);
|
2018-01-29 20:32:51 +00:00
|
|
|
}
|