openmw-tes3coop/components/openmw-mp/Packets/World/PacketScriptGlobalShort.cpp

16 lines
409 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketScriptGlobalShort.hpp"
using namespace mwmp;
PacketScriptGlobalShort::PacketScriptGlobalShort(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
{
packetID = ID_SCRIPT_GLOBAL_SHORT;
}
2017-06-02 19:10:47 +00:00
void PacketScriptGlobalShort::Object(WorldObject &worldObject, bool send)
{
2017-06-02 19:10:47 +00:00
RW(worldObject.varName, send);
RW(worldObject.shortVal, send);
}