summaryrefslogtreecommitdiff
path: root/src/net/eathena/familyhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 20:51:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 20:51:35 +0300
commitd276f218f8b1b06d088fe83ae5e11ab11deaa259 (patch)
treed31230865cb214fa2f5d6fe56198129691af1551 /src/net/eathena/familyhandler.cpp
parent2b20ac0419cdeeebf47dd41c18811b683f06eb4a (diff)
downloadmanaplus-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.gz
manaplus-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.bz2
manaplus-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.xz
manaplus-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.cpp11
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