mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 19:19:55 +00:00
34 lines
804 B
C++
34 lines
804 B
C++
#ifndef OPENMW_PLAYERPACKET_HPP
|
|
#define OPENMW_PLAYERPACKET_HPP
|
|
|
|
#include <string>
|
|
#include <RakNetTypes.h>
|
|
#include <BitStream.h>
|
|
#include <PacketPriority.h>
|
|
#include <components/openmw-mp/Base/BasePlayer.hpp>
|
|
|
|
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
|
|
|
|
|
namespace mwmp
|
|
{
|
|
class PlayerPacket : public BasePacket
|
|
{
|
|
public:
|
|
PlayerPacket(RakNet::RakPeerInterface *peer);
|
|
|
|
~PlayerPacket();
|
|
|
|
virtual void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send);
|
|
|
|
virtual void Send(BasePlayer *player, bool toOtherPlayers = true);
|
|
virtual void Send(BasePlayer *player, RakNet::AddressOrGUID destination);
|
|
virtual void Read(BasePlayer *player);
|
|
|
|
protected:
|
|
BasePlayer *player;
|
|
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PLAYERPACKET_HPP
|