2011-10-26 09:49:01 -07:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
2012-01-27 06:04:28 -08:00
|
|
|
|
|
2011-10-26 09:49:01 -07:00
|
|
|
|
|
2011-12-21 12:42:34 -08:00
|
|
|
|
//Sure it<69>s not Creative Inventory?
|
|
|
|
|
|
2011-12-31 20:55:17 -08:00
|
|
|
|
class cPacket_CreativeInventoryAction : public cPacket
|
2011-10-26 09:49:01 -07:00
|
|
|
|
{
|
|
|
|
|
public:
|
2011-12-31 20:55:17 -08:00
|
|
|
|
cPacket_CreativeInventoryAction()
|
2011-10-26 09:49:01 -07:00
|
|
|
|
: m_Slot( 0 )
|
|
|
|
|
, m_ItemID( 0 )
|
|
|
|
|
, m_Quantity( 0 )
|
2011-10-26 13:52:19 -07:00
|
|
|
|
, m_Damage( 0 )
|
2011-12-31 20:55:17 -08: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 09:49:01 -07:00
|
|
|
|
|
|
|
|
|
bool Parse(cSocket & a_Socket);
|
|
|
|
|
bool Send(cSocket & a_Socket);
|
|
|
|
|
|
|
|
|
|
short m_Slot; // 0 = hold 1-4 = armor
|
|
|
|
|
short m_ItemID;
|
2011-12-21 12:42:34 -08:00
|
|
|
|
char m_Quantity; //Byte not short ;)
|
2011-10-26 13:52:19 -07:00
|
|
|
|
short m_Damage;
|
2011-10-26 09:49:01 -07:00
|
|
|
|
|
2011-12-21 12:42:34 -08:00
|
|
|
|
static const unsigned int c_Size = 1 + 2;
|
2011-10-26 09:49:01 -07:00
|
|
|
|
};
|