summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_AddToInventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/packets/cPacket_AddToInventory.h')
-rw-r--r--source/packets/cPacket_AddToInventory.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/packets/cPacket_AddToInventory.h b/source/packets/cPacket_AddToInventory.h
new file mode 100644
index 000000000..8029a53d0
--- /dev/null
+++ b/source/packets/cPacket_AddToInventory.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "cPacket.h"
+#include "PacketID.h"
+
+class cPacket_AddToInventory : public cPacket
+{
+public:
+ cPacket_AddToInventory()
+ : m_ItemType( 0 )
+ , m_Count( 0 )
+ , m_Life( 0 )
+ { m_PacketID = E_ADD_TO_INV; }
+ virtual cPacket* Clone() const { return new cPacket_AddToInventory(*this); }
+
+ bool Parse( cSocket & a_Socket );
+ bool Send( cSocket & a_Socket );
+
+ short m_ItemType;
+ char m_Count;
+ short m_Life;
+ static const unsigned int c_Size = 1 + 2 + 1 + 2;
+}; \ No newline at end of file