2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-19 12:42:32 -07:00
|
|
|
class cPacket_UseEntity :
|
|
|
|
public cPacket
|
2012-06-14 06:06:06 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
cPacket_UseEntity()
|
2012-08-19 12:42:32 -07: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 06:06:06 -07:00
|
|
|
|
2012-08-17 03:18:07 -07:00
|
|
|
virtual int Parse(cByteBuffer & a_Buffer) override;
|
2012-06-14 06:06:06 -07:00
|
|
|
|
2012-08-19 12:42:32 -07:00
|
|
|
int m_SourceEntityID;
|
|
|
|
int m_TargetEntityID;
|
|
|
|
bool m_IsLeftClick;
|
2012-06-14 06:06:06 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|