2016-10-26 09:25:50 +00:00
|
|
|
#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)
|
2016-10-26 09:25:50 +00:00
|
|
|
{
|
2017-06-02 19:10:47 +00:00
|
|
|
RW(worldObject.varName, send);
|
|
|
|
RW(worldObject.shortVal, send);
|
2016-10-26 09:25:50 +00:00
|
|
|
}
|