1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-02 07:45:32 +00:00
openmw-tes3mp/components/openmw-mp/Packets/World/WorldPacket.hpp

35 lines
787 B
C++
Raw Normal View History

#ifndef OPENMW_WORLDPACKET_HPP
#define OPENMW_WORLDPACKET_HPP
#include <string>
#include <RakNetTypes.h>
#include <BitStream.h>
#include <PacketPriority.h>
#include <components/openmw-mp/Base/BaseEvent.hpp>
#include <components/openmw-mp/Packets/BasePacket.hpp>
namespace mwmp
{
class WorldPacket : public BasePacket
{
public:
WorldPacket(RakNet::RakPeerInterface *peer);
~WorldPacket();
virtual void Packet(RakNet::BitStream *bs, BaseEvent *event, bool send);
virtual void Send(BaseEvent *event, bool toOtherPlayers = true);
virtual void Send(BaseEvent *event, RakNet::AddressOrGUID destination);
virtual void Read(BaseEvent *event);
protected:
BaseEvent *event;
};
}
#endif //OPENMW_WORLDPACKET_HPP