2012-02-07 15:49:52 -05:00
|
|
|
|
|
2011-10-26 12:49:01 -04:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
2012-01-27 09:04:28 -05:00
|
|
|
|
|
2011-10-26 12:49:01 -04:00
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-21 15:42:34 -05:00
|
|
|
|
//Sure it<69>s not Creative Inventory?
|
|
|
|
|
|
2011-12-31 23:55:17 -05:00
|
|
|
|
class cPacket_CreativeInventoryAction : public cPacket
|
2011-10-26 12:49:01 -04:00
|
|
|
|
{
|
|
|
|
|
public:
|
2011-12-31 23:55:17 -05:00
|
|
|
|
cPacket_CreativeInventoryAction()
|
2011-10-26 12:49:01 -04:00
|
|
|
|
: m_Slot( 0 )
|
|
|
|
|
, m_ItemID( 0 )
|
|
|
|
|
, m_Quantity( 0 )
|
2011-10-26 16:52:19 -04:00
|
|
|
|
, m_Damage( 0 )
|
2011-12-31 23:55:17 -05:00
|
|
|
|
{ m_PacketID = E_CREATIVE_INVENTORY_ACTION; m_Quantity = 1; }
|
|
|
|
|
cPacket_CreativeInventoryAction( const cPacket_CreativeInventoryAction & a_Copy );
|
|
|
|
|
virtual cPacket* Clone() const { return new cPacket_CreativeInventoryAction(*this); }
|
2011-10-26 12:49:01 -04:00
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
virtual int Parse(const char * a_Data, int a_Size) override;
|
|
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
2011-10-26 12:49:01 -04:00
|
|
|
|
|
|
|
|
|
short m_Slot; // 0 = hold 1-4 = armor
|
|
|
|
|
short m_ItemID;
|
2011-12-21 15:42:34 -05:00
|
|
|
|
char m_Quantity; //Byte not short ;)
|
2011-10-26 16:52:19 -04:00
|
|
|
|
short m_Damage;
|
2011-10-26 12:49:01 -04:00
|
|
|
|
|
2011-12-21 15:42:34 -05:00
|
|
|
|
static const unsigned int c_Size = 1 + 2;
|
2011-10-26 12:49:01 -04:00
|
|
|
|
};
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|