diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 13:10:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 13:10:02 +0300 |
commit | 4ae1d67a20f63124ee5a7d26a17d0beae523c6a4 (patch) | |
tree | 5678000b5ce01f3b1f90e666970ae2167cd409fb /src/net | |
parent | e757d6ff680f06dc9b77d20a1d0dc79515224927 (diff) | |
download | manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.tar.gz manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.tar.bz2 manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.tar.xz manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.zip |
eathena: add packet CMSG_BANK_WITHDRAW 0x09a9.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/bankhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/bankhandler.cpp | 7 | ||||
-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, 18 insertions, 0 deletions
diff --git a/src/net/bankhandler.h b/src/net/bankhandler.h index 406c5526b..0bdccf533 100644 --- a/src/net/bankhandler.h +++ b/src/net/bankhandler.h @@ -35,6 +35,8 @@ class BankHandler notfinal { } virtual void deposit(const int money) const = 0; + + virtual void withdraw(const int money) const = 0; }; } // namespace Net diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index 32e5ecd06..1d7116004 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -61,4 +61,11 @@ void BankHandler::deposit(const int money) const outMsg.writeInt32(money, "money"); } +void BankHandler::withdraw(const int money) const +{ + MessageOut outMsg(CMSG_BANK_WITHDRAW); + 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 7821e4b34..601af27c2 100644 --- a/src/net/eathena/bankhandler.h +++ b/src/net/eathena/bankhandler.h @@ -40,6 +40,8 @@ class BankHandler final : public MessageHandler, void handleMessage(Net::MessageIn &msg) override final; void deposit(const int money) const override final; + + void withdraw(const int money) const override final; }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 493e88a48..64a5a5cc7 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -387,6 +387,7 @@ #define CMSG_ASK_FOR_CHILD_REPLY 0x01f7 #define CMSG_BANK_DEPOSIT 0x09a7 +#define CMSG_BANK_WITHDRAW 0x09a9 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb diff --git a/src/net/tmwa/bankhandler.cpp b/src/net/tmwa/bankhandler.cpp index beff54da4..69f4250d8 100644 --- a/src/net/tmwa/bankhandler.cpp +++ b/src/net/tmwa/bankhandler.cpp @@ -46,4 +46,8 @@ void BankHandler::deposit(const int money A_UNUSED) const { } +void BankHandler::withdraw(const int money A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/bankhandler.h b/src/net/tmwa/bankhandler.h index 6da1394b7..a439ac381 100644 --- a/src/net/tmwa/bankhandler.h +++ b/src/net/tmwa/bankhandler.h @@ -39,6 +39,8 @@ class BankHandler final : public MessageHandler, void handleMessage(Net::MessageIn &msg) override final; void deposit(const int money) const override final; + + void withdraw(const int money) const override final; }; } // namespace TmwAthena |