forked from teamnwah/openmw-tes3coop
27148ce9eb
Additionally, make it slightly clearer who created which previously existing packets.
30 lines
592 B
C++
30 lines
592 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();
|
|
|
|
void setPlayer(BasePlayer *player);
|
|
BasePlayer *getPlayer();
|
|
|
|
protected:
|
|
BasePlayer *player;
|
|
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PLAYERPACKET_HPP
|