2012-02-07 20:49:52 +00:00
|
|
|
|
2011-10-26 16:49:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
2012-08-18 09:56:28 +00:00
|
|
|
#include "../cItem.h"
|
2012-01-27 14:04:28 +00:00
|
|
|
|
2011-10-26 16:49:01 +00:00
|
|
|
|
2012-02-07 20:49:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-18 09:56:28 +00:00
|
|
|
class cPacket_CreativeInventoryAction :
|
|
|
|
|
public cPacket
|
2011-10-26 16:49:01 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2012-08-18 09:56:28 +00:00
|
|
|
cPacket_CreativeInventoryAction() :
|
|
|
|
|
m_SlotNum(0)
|
|
|
|
|
{
|
|
|
|
|
m_PacketID = E_CREATIVE_INVENTORY_ACTION;
|
|
|
|
|
}
|
|
|
|
|
|
2012-01-01 04:55:17 +00:00
|
|
|
cPacket_CreativeInventoryAction( const cPacket_CreativeInventoryAction & a_Copy );
|
|
|
|
|
virtual cPacket* Clone() const { return new cPacket_CreativeInventoryAction(*this); }
|
2011-10-26 16:49:01 +00:00
|
|
|
|
2012-08-17 10:18:07 +00:00
|
|
|
virtual int Parse(cByteBuffer & a_Buffer) override;
|
2012-02-07 20:49:52 +00:00
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
2011-10-26 16:49:01 +00:00
|
|
|
|
2012-08-18 09:56:28 +00:00
|
|
|
short m_SlotNum;
|
|
|
|
|
cItem m_ClickedItem;
|
|
|
|
|
} ;
|
2012-02-07 20:49:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|