summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 12:56:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 12:56:17 +0300
commite757d6ff680f06dc9b77d20a1d0dc79515224927 (patch)
tree94b985e36006120758876682980b7e3d98b4aef4 /src/net
parent5d3d299e22ddda7700f78a0fd0c915be3788087f (diff)
downloadmanaverse-e757d6ff680f06dc9b77d20a1d0dc79515224927.tar.gz
manaverse-e757d6ff680f06dc9b77d20a1d0dc79515224927.tar.bz2
manaverse-e757d6ff680f06dc9b77d20a1d0dc79515224927.tar.xz
manaverse-e757d6ff680f06dc9b77d20a1d0dc79515224927.zip
eathena: add packet CMSG_BANK_DEPOSIT 0x09a7.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/bankhandler.h2
-rw-r--r--src/net/eathena/bankhandler.cpp7
-rw-r--r--src/net/eathena/bankhandler.h2
-rw-r--r--src/net/eathena/protocol.h2
-rw-r--r--src/net/tmwa/bankhandler.cpp4
-rw-r--r--src/net/tmwa/bankhandler.h2
6 files changed, 19 insertions, 0 deletions
diff --git a/src/net/bankhandler.h b/src/net/bankhandler.h
index 1193690f5..406c5526b 100644
--- a/src/net/bankhandler.h
+++ b/src/net/bankhandler.h
@@ -33,6 +33,8 @@ class BankHandler notfinal
public:
virtual ~BankHandler()
{ }
+
+ virtual void deposit(const int money) const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index c8962bb02..32e5ecd06 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -54,4 +54,11 @@ void BankHandler::handleMessage(Net::MessageIn &msg)
}
}
+void BankHandler::deposit(const int money) const
+{
+ MessageOut outMsg(CMSG_BANK_DEPOSIT);
+ outMsg.writeInt32(0, "account id");
+ outMsg.writeInt32(money, "money");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/bankhandler.h b/src/net/eathena/bankhandler.h
index eee935e5f..7821e4b34 100644
--- a/src/net/eathena/bankhandler.h
+++ b/src/net/eathena/bankhandler.h
@@ -38,6 +38,8 @@ class BankHandler final : public MessageHandler,
A_DELETE_COPY(BankHandler)
void handleMessage(Net::MessageIn &msg) override final;
+
+ void deposit(const int money) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index f5ac75da9..493e88a48 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -386,6 +386,8 @@
#define CMSG_ASK_FOR_CHILD 0x01f9
#define CMSG_ASK_FOR_CHILD_REPLY 0x01f7
+#define CMSG_BANK_DEPOSIT 0x09a7
+
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
#define SMSG_SKILL_CAST_CANCEL 0x01b9
diff --git a/src/net/tmwa/bankhandler.cpp b/src/net/tmwa/bankhandler.cpp
index a76fd1e86..beff54da4 100644
--- a/src/net/tmwa/bankhandler.cpp
+++ b/src/net/tmwa/bankhandler.cpp
@@ -42,4 +42,8 @@ void BankHandler::handleMessage(Net::MessageIn &msg A_UNUSED)
{
}
+void BankHandler::deposit(const int money A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/bankhandler.h b/src/net/tmwa/bankhandler.h
index b0db65298..6da1394b7 100644
--- a/src/net/tmwa/bankhandler.h
+++ b/src/net/tmwa/bankhandler.h
@@ -37,6 +37,8 @@ class BankHandler final : public MessageHandler,
A_DELETE_COPY(BankHandler)
void handleMessage(Net::MessageIn &msg) override final;
+
+ void deposit(const int money) const override final;
};
} // namespace TmwAthena