2012-02-07 15:49:52 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
2012-01-27 09:04:28 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
class cEntity;
|
2012-03-19 13:15:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cPacket_EntityLook :
|
|
|
|
public cPacket
|
2011-10-03 14:41:19 -04:00
|
|
|
{
|
|
|
|
public:
|
2012-03-19 13:15:35 -04:00
|
|
|
cPacket_EntityLook(void)
|
2011-10-03 14:41:19 -04:00
|
|
|
: m_UniqueID( 0 )
|
|
|
|
, m_Rotation( 0 )
|
|
|
|
, m_Pitch( 0 )
|
|
|
|
{ m_PacketID = E_ENT_LOOK; }
|
2012-03-19 13:15:35 -04:00
|
|
|
cPacket_EntityLook(const cEntity & a_Entity);
|
|
|
|
virtual cPacket* Clone(void) const { return new cPacket_EntityLook(*this); }
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
2011-10-03 14:41:19 -04:00
|
|
|
|
|
|
|
int m_UniqueID;
|
|
|
|
char m_Rotation;
|
|
|
|
char m_Pitch;
|
2012-03-19 13:15:35 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-03-19 13:15:35 -04:00
|
|
|
|
|
|
|
class cPacket_EntityHeadLook :
|
|
|
|
public cPacket
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cPacket_EntityHeadLook(void)
|
|
|
|
: m_UniqueID( 0 )
|
|
|
|
, m_HeadYaw( 0 )
|
|
|
|
{ m_PacketID = E_ENT_LOOK; }
|
|
|
|
cPacket_EntityHeadLook(const cEntity & a_Entity);
|
|
|
|
|
|
|
|
virtual cPacket * Clone(void) const { return new cPacket_EntityHeadLook(*this); }
|
|
|
|
|
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
|
|
|
|
|
|
|
int m_UniqueID;
|
|
|
|
char m_HeadYaw;
|
2011-10-03 14:41:19 -04:00
|
|
|
};
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|