2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cPacket_EntityEquipment : public cPacket
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cPacket_EntityEquipment()
|
|
|
|
: m_UniqueID( 0 )
|
2012-08-19 07:51:17 -04:00
|
|
|
, m_SlotNum( 0 )
|
|
|
|
, m_ItemType( 0 )
|
|
|
|
, m_ItemDamage( 0 )
|
|
|
|
{
|
|
|
|
m_PacketID = E_ENTITY_EQUIPMENT;
|
|
|
|
}
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
cPacket_EntityEquipment( const cPacket_EntityEquipment & a_Copy );
|
2012-08-19 07:51:17 -04:00
|
|
|
virtual cPacket * Clone() const { return new cPacket_EntityEquipment(*this); }
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-08-19 07:51:17 -04:00
|
|
|
virtual int Parse(cByteBuffer & a_Buffer) override;
|
2012-06-14 09:06:06 -04:00
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
|
|
|
|
|
|
|
int m_UniqueID;
|
2012-08-19 07:51:17 -04:00
|
|
|
short m_SlotNum; // 0 = hold 1-4 = armor
|
|
|
|
short m_ItemType;
|
|
|
|
short m_ItemDamage;
|
2012-06-14 09:06:06 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|