2012-02-07 15:49:52 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
class cPacket_WindowOpen : public cPacket
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cPacket_WindowOpen()
|
|
|
|
: m_WindowID( 0 )
|
|
|
|
, m_InventoryType( 0 )
|
|
|
|
, m_NumSlots( 0 )
|
|
|
|
{ m_PacketID = E_WINDOW_OPEN; }
|
|
|
|
virtual cPacket* Clone() const { return new cPacket_WindowOpen(*this); }
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
char m_WindowID;
|
|
|
|
char m_InventoryType;
|
|
|
|
AString m_WindowTitle;
|
|
|
|
char m_NumSlots;
|
2011-10-03 14:41:19 -04:00
|
|
|
|
|
|
|
static const unsigned int c_Size = 1 + 1 + 1 + 2 + 1; // + sizeof(string)
|
2012-02-07 15:49:52 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|