summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 13:09:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 13:09:20 +0300
commit83679d661c29e6e861375c329fa6618365f417c8 (patch)
tree957fe1ad8c861c7a7db39903498e2e4c40de4a59 /src/net/eathena
parent470f883b5701b74ae956f02f1b91ac7e584776b2 (diff)
downloadplus-83679d661c29e6e861375c329fa6618365f417c8.tar.gz
plus-83679d661c29e6e861375c329fa6618365f417c8.tar.bz2
plus-83679d661c29e6e861375c329fa6618365f417c8.tar.xz
plus-83679d661c29e6e861375c329fa6618365f417c8.zip
eathena: add partial support for packet SMSG_AUCTION_OPEN_WINDOW 0x025f.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/auctionhandler.cpp12
-rw-r--r--src/net/eathena/auctionhandler.h3
-rw-r--r--src/net/eathena/protocol.h2
3 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp
index 343ce08c3..3f24121df 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -20,6 +20,8 @@
#include "net/eathena/auctionhandler.h"
+#include "net/eathena/protocol.h"
+
#include "debug.h"
extern Net::AuctionHandler *auctionHandler;
@@ -32,6 +34,7 @@ AuctionHandler::AuctionHandler() :
{
static const uint16_t _messages[] =
{
+ SMSG_AUCTION_OPEN_WINDOW,
0
};
handledMessages = _messages;
@@ -42,9 +45,18 @@ void AuctionHandler::handleMessage(Net::MessageIn &msg)
{
switch (msg.getId())
{
+ case SMSG_AUCTION_OPEN_WINDOW:
+ processOpenWindow(msg);
+ break;
+
default:
break;
}
}
+void AuctionHandler::processOpenWindow(Net::MessageIn &msg)
+{
+ msg.readInt32("flag"); // 0 - open, 1 - close
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index b7e797cc6..2f2d11894 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -35,6 +35,9 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
A_DELETE_COPY(AuctionHandler)
void handleMessage(Net::MessageIn &msg) override final;
+
+ protected:
+ void processOpenWindow(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index c2a6dfbfc..a6c0d7546 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -291,6 +291,8 @@
#define SMSG_FRIENDS_LIST 0x0201
#define SMSG_FRIENDS_REQUEST_ACK 0x0209
+#define SMSG_AUCTION_OPEN_WINDOW 0x025f
+
/**********************************
* Packets from client to server *
**********************************/