mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:49:56 +00:00
15 lines
409 B
C++
15 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);
|
|
}
|