diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-18 19:19:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-18 19:19:43 +0300 |
commit | c16820057eb9d381eb222512bb931da12e898a1f (patch) | |
tree | 140c2dc45aef83abe480b4a41b7c492fd2a55ebb /src/net/eathena/roulettehandler.cpp | |
parent | 789277e423144102b2b28788e1bb8c7672b06a79 (diff) | |
download | manaplus-c16820057eb9d381eb222512bb931da12e898a1f.tar.gz manaplus-c16820057eb9d381eb222512bb931da12e898a1f.tar.bz2 manaplus-c16820057eb9d381eb222512bb931da12e898a1f.tar.xz manaplus-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.cpp | 20 |
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 |