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