summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
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