2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-19 15:42:32 -04:00
|
|
|
class cPacket_UseEntity :
|
|
|
|
public cPacket
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
cPacket_UseEntity()
|
2012-08-19 15:42:32 -04:00
|
|
|
: m_SourceEntityID(0)
|
|
|
|
, m_TargetEntityID(0)
|
|
|
|
, m_IsLeftClick(false)
|
|
|
|
{
|
|
|
|
m_PacketID = E_USE_ENTITY;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual cPacket * Clone() const { return new cPacket_UseEntity(*this); }
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-08-17 06:18:07 -04:00
|
|
|
virtual int Parse(cByteBuffer & a_Buffer) override;
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-08-19 15:42:32 -04:00
|
|
|
int m_SourceEntityID;
|
|
|
|
int m_TargetEntityID;
|
|
|
|
bool m_IsLeftClick;
|
2012-06-14 09:06:06 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|