We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8f5672 commit fb36fa7Copy full SHA for fb36fa7
2 files changed
src/Net/msg/ItemMsg.cpp
@@ -0,0 +1,20 @@
1
+#include "Net/msg/ItemMsg.h"
2
+#include "Cmn/ItemMgr.h"
3
+
4
+#include <libkiwi.h>
5
6
+namespace AP {
7
+namespace Net {
8
9
+/**
10
+ * @brief Constructor
11
+ *
12
+ * @param rStrm Stream to packet content
13
+ */
14
+ItemMsg::ItemMsg(kiwi::MemStream& rStrm) {
15
+ u16 itemId = rStrm.Read_u16();
16
17
+ Cmn::ItemMgr::GetInstance().SetItemState((ItemID)itemId, true);
18
+}
19
20
src/Net/msg/ItemMsg.h
@@ -19,7 +19,7 @@ class ItemMsg : public IMessage {
*
* @param rStrm Stream to packet content
21
*/
22
- ItemMsg(kiwi::MemStream& /* rStrm */) {}
+ ItemMsg(kiwi::MemStream& rStrm);
23
24
/**
25
* @brief Gets the type of this command
0 commit comments