forked from teamnwah/openmw-tes3coop
Add and implement ID_SCRIPT_MEMBER_SHORT
parent
c91e240664
commit
c205e793cb
@ -0,0 +1,19 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketScriptMemberShort.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketScriptMemberShort::PacketScriptMemberShort(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_SCRIPT_MEMBER_SHORT;
|
||||
}
|
||||
|
||||
void PacketScriptMemberShort::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
|
||||
RW(event->cellRef.mRefID, send);
|
||||
|
||||
RW(event->index, send);
|
||||
RW(event->shortVal, send);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETSCRIPTMEMBERSHORT_HPP
|
||||
#define OPENMW_PACKETSCRIPTMEMBERSHORT_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketScriptMemberShort : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketScriptMemberShort(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETSCRIPTMEMBERSHORT_HPP
|
Loading…
Reference in New Issue