forked from mirror/openmw-tes3mp
16 lines
409 B
C++
16 lines
409 B
C++
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||
|
#include "PacketScriptGlobalFloat.hpp"
|
||
|
|
||
|
using namespace mwmp;
|
||
|
|
||
|
PacketScriptGlobalFloat::PacketScriptGlobalFloat(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||
|
{
|
||
|
packetID = ID_SCRIPT_GLOBAL_FLOAT;
|
||
|
}
|
||
|
|
||
|
void PacketScriptGlobalFloat::Object(WorldObject &worldObject, bool send)
|
||
|
{
|
||
|
RW(worldObject.varName, send);
|
||
|
RW(worldObject.floatVal, send);
|
||
|
}
|