diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-15 20:51:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-15 20:51:35 +0300 |
commit | d276f218f8b1b06d088fe83ae5e11ab11deaa259 (patch) | |
tree | d31230865cb214fa2f5d6fe56198129691af1551 /src/net/eathena/familyhandler.cpp | |
parent | 2b20ac0419cdeeebf47dd41c18811b683f06eb4a (diff) | |
download | manaverse-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.gz manaverse-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.bz2 manaverse-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.xz manaverse-d276f218f8b1b06d088fe83ae5e11ab11deaa259.zip |
eathena: add packet CMSG_ASK_FOR_CHILD 0x01f9.
Diffstat (limited to 'src/net/eathena/familyhandler.cpp')
-rw-r--r-- | src/net/eathena/familyhandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp index 76b31ba3d..3c5892aa1 100644 --- a/src/net/eathena/familyhandler.cpp +++ b/src/net/eathena/familyhandler.cpp @@ -22,6 +22,8 @@ #include "logger.h" +#include "being/being.h" + #include "net/ea/eaprotocol.h" #include "net/eathena/messageout.h" @@ -54,4 +56,13 @@ void FamilyHandler::handleMessage(Net::MessageIn &msg) } } +void FamilyHandler::askForChild(const Being *const being) +{ + if (!being) + return; + + MessageOut outMsg(CMSG_ASK_FOR_CHILD); + outMsg.writeInt32(being->getId()); +} + } // namespace EAthena |