summaryrefslogtreecommitdiff
path: root/src/net/eathena/roulettehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-18 19:19:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-18 19:19:43 +0300
commitc16820057eb9d381eb222512bb931da12e898a1f (patch)
tree140c2dc45aef83abe480b4a41b7c492fd2a55ebb /src/net/eathena/roulettehandler.cpp
parent789277e423144102b2b28788e1bb8c7672b06a79 (diff)
downloadplus-c16820057eb9d381eb222512bb931da12e898a1f.tar.gz
plus-c16820057eb9d381eb222512bb931da12e898a1f.tar.bz2
plus-c16820057eb9d381eb222512bb931da12e898a1f.tar.xz
plus-c16820057eb9d381eb222512bb931da12e898a1f.zip
eathena: add partial support for packet SMSG_ROULETTE_INFO_ACK_TYPE 0x0a1c.
Diffstat (limited to 'src/net/eathena/roulettehandler.cpp')
-rw-r--r--src/net/eathena/roulettehandler.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/net/eathena/roulettehandler.cpp b/src/net/eathena/roulettehandler.cpp
index d11357fbb..372e13f45 100644
--- a/src/net/eathena/roulettehandler.cpp
+++ b/src/net/eathena/roulettehandler.cpp
@@ -37,6 +37,7 @@ RouletteHandler::RouletteHandler() :
{
static const uint16_t _messages[] =
{
+ SMSG_ROULETTE_INFO_ACK_TYPE,
0
};
handledMessages = _messages;
@@ -47,9 +48,28 @@ void RouletteHandler::handleMessage(Net::MessageIn &msg)
{
switch (msg.getId())
{
+ case SMSG_ROULETTE_INFO_ACK_TYPE:
+ processRouletteInfoAckType(msg);
+ break;
+
default:
break;
}
}
+void RouletteHandler::processRouletteInfoAckType(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ const int count = (msg.readInt16("len") - 8) / 8;
+ msg.readInt32("serial");
+
+ for (int f = 0; f < count; f ++)
+ {
+ msg.readInt16("row");
+ msg.readInt16("position");
+ msg.readInt16("item id");
+ msg.readInt16("count");
+ }
+}
+
} // namespace EAthena