diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-28 23:45:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-28 23:45:23 +0300 |
commit | 068b17892c0edcde310cebbbdc06a00ce56d7928 (patch) | |
tree | 5ccf6939bbd0cac96ffb3f90f277b10b8cecc484 | |
parent | 4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6 (diff) | |
download | plus-068b17892c0edcde310cebbbdc06a00ce56d7928.tar.gz plus-068b17892c0edcde310cebbbdc06a00ce56d7928.tar.bz2 plus-068b17892c0edcde310cebbbdc06a00ce56d7928.tar.xz plus-068b17892c0edcde310cebbbdc06a00ce56d7928.zip |
eathena: add packet CMSG_BANK_OPEN 0x09b6.
-rw-r--r-- | src/net/bankhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/bankhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/bankhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/bankhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/bankhandler.h | 2 |
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/bankhandler.h b/src/net/bankhandler.h index 974d73147..94c5e6e8c 100644 --- a/src/net/bankhandler.h +++ b/src/net/bankhandler.h @@ -41,6 +41,8 @@ class BankHandler notfinal virtual void withdraw(const int money) const = 0; virtual void check() const = 0; + + virtual void open() const = 0; }; } // namespace Net diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index 8a6bad3ce..c98b5838c 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -118,4 +118,10 @@ void BankHandler::processBankWithdraw(Net::MessageIn &msg) NotifyManager::notify(NotifyTypes::BANK_WITHDRAW_FAILED); } +void BankHandler::open() const +{ + createOutPacket(CMSG_BANK_OPEN); + outMsg.writeInt32(0, "unused"); +} + } // namespace EAthena diff --git a/src/net/eathena/bankhandler.h b/src/net/eathena/bankhandler.h index d5d9f513d..1fcec8e93 100644 --- a/src/net/eathena/bankhandler.h +++ b/src/net/eathena/bankhandler.h @@ -45,6 +45,8 @@ class BankHandler final : public MessageHandler, void check() const override final; + void open() const override final; + protected: static void processBankStatus(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 884cfc382..b8b205f30 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -667,6 +667,7 @@ #define CMSG_BANK_DEPOSIT 0x09a7 #define CMSG_BANK_WITHDRAW 0x09a9 #define CMSG_BANK_CHECK 0x09ab +#define CMSG_BANK_OPEN 0x09b6 #define CMSG_FRIENDS_ADD_PLAYER 0x091a #define CMSG_FRIENDS_REQUEST_ACK 0x0208 diff --git a/src/net/tmwa/bankhandler.cpp b/src/net/tmwa/bankhandler.cpp index d0cccc53f..621b15c82 100644 --- a/src/net/tmwa/bankhandler.cpp +++ b/src/net/tmwa/bankhandler.cpp @@ -54,4 +54,8 @@ void BankHandler::check() const { } +void BankHandler::open() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/bankhandler.h b/src/net/tmwa/bankhandler.h index 6b3c9e505..6829d3608 100644 --- a/src/net/tmwa/bankhandler.h +++ b/src/net/tmwa/bankhandler.h @@ -45,6 +45,8 @@ class BankHandler final : public MessageHandler, void withdraw(const int money) const override final; void check() const override final; + + void open() const override final; }; } // namespace TmwAthena |