summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 21:23:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 21:23:27 +0300
commit69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb (patch)
tree8669979786e8bd0ff2fe987e092ea7bbf3ffa269 /src/net/eathena/pethandler.cpp
parent1e7765d68db49cae92d30f946c2039c37ee9a3e1 (diff)
downloadmv-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.tar.gz
mv-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.tar.bz2
mv-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.tar.xz
mv-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.zip
eathena: add partial support for packet SMSG_PET_DATA 0x01a4.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index 9b2f3b22b..a2b410b70 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -56,6 +56,7 @@ PetHandler::PetHandler() :
SMSG_PET_MESSAGE,
SMSG_PET_ROULETTE,
SMSG_PET_EGGS_LIST,
+ SMSG_PET_DATA,
0
};
handledMessages = _messages;
@@ -79,6 +80,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg)
processEggsList(msg);
break;
+ case SMSG_PET_DATA:
+ processPetData(msg);
+ break;
+
default:
break;
}
@@ -171,4 +176,11 @@ void PetHandler::processEggsList(Net::MessageIn &msg)
}
}
+void PetHandler::processPetData(Net::MessageIn &msg)
+{
+ msg.readUInt8("type");
+ msg.readInt32("pet id");
+ msg.readInt32("param");
+}
+
} // namespace EAthena