summaryrefslogtreecommitdiff
path: root/src/net/eathena/familyhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 21:38:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 21:38:58 +0300
commit9743b3341693f71bcaf62a979ec25b249eb0d39b (patch)
tree720a0862ae1a3ebc7ebff60d0704334b07609d8a /src/net/eathena/familyhandler.cpp
parentc259c8285f394a56a42fb07eb2aa2e033b346954 (diff)
downloadmv-9743b3341693f71bcaf62a979ec25b249eb0d39b.tar.gz
mv-9743b3341693f71bcaf62a979ec25b249eb0d39b.tar.bz2
mv-9743b3341693f71bcaf62a979ec25b249eb0d39b.tar.xz
mv-9743b3341693f71bcaf62a979ec25b249eb0d39b.zip
eathena: add packet CMSG_ASK_FOR_CHILD_REPLY 0x01f7.
Diffstat (limited to 'src/net/eathena/familyhandler.cpp')
-rw-r--r--src/net/eathena/familyhandler.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp
index 44661a0a5..b0135a4f3 100644
--- a/src/net/eathena/familyhandler.cpp
+++ b/src/net/eathena/familyhandler.cpp
@@ -37,7 +37,9 @@ namespace EAthena
{
FamilyHandler::FamilyHandler() :
- MessageHandler()
+ MessageHandler(),
+ mParent1(0),
+ mParent2(0)
{
static const uint16_t _messages[] =
{
@@ -77,4 +79,12 @@ void FamilyHandler::processAskForChild(Net::MessageIn &msg)
msg.readString(24, "name who ask");
}
+void FamilyHandler::askForChildReply(const bool accept)
+{
+ MessageOut outMsg(CMSG_ASK_FOR_CHILD_REPLY);
+ outMsg.writeInt32(mParent1, "parent1");
+ outMsg.writeInt32(mParent2, "parent2");
+ outMsg.writeInt32(accept ? 0: 1, "result");
+}
+
} // namespace EAthena