summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-28 23:47:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-28 23:47:41 +0300
commit953e1adb118cf93dd411dfa3e66d994aa9abb548 (patch)
treeaab5e03fbf6434fd8b42952a59795ceb3398522e /src
parent068b17892c0edcde310cebbbdc06a00ce56d7928 (diff)
downloadManaVerse-953e1adb118cf93dd411dfa3e66d994aa9abb548.tar.gz
ManaVerse-953e1adb118cf93dd411dfa3e66d994aa9abb548.tar.bz2
ManaVerse-953e1adb118cf93dd411dfa3e66d994aa9abb548.tar.xz
ManaVerse-953e1adb118cf93dd411dfa3e66d994aa9abb548.zip
eathena: add packet CMSG_BANK_CLOSE 0x09b8.
Diffstat (limited to 'src')
-rw-r--r--src/net/bankhandler.h2
-rw-r--r--src/net/eathena/bankhandler.cpp6
-rw-r--r--src/net/eathena/bankhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/bankhandler.cpp4
-rw-r--r--src/net/tmwa/bankhandler.h2
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/bankhandler.h b/src/net/bankhandler.h
index 94c5e6e8c..dbfe1f229 100644
--- a/src/net/bankhandler.h
+++ b/src/net/bankhandler.h
@@ -43,6 +43,8 @@ class BankHandler notfinal
virtual void check() const = 0;
virtual void open() const = 0;
+
+ virtual void close() const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index c98b5838c..50b1513ab 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -124,4 +124,10 @@ void BankHandler::open() const
outMsg.writeInt32(0, "unused");
}
+void BankHandler::close() const
+{
+ createOutPacket(CMSG_BANK_CLOSE);
+ outMsg.writeInt32(0, "unused");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/bankhandler.h b/src/net/eathena/bankhandler.h
index 1fcec8e93..bfa07fcb4 100644
--- a/src/net/eathena/bankhandler.h
+++ b/src/net/eathena/bankhandler.h
@@ -47,6 +47,8 @@ class BankHandler final : public MessageHandler,
void open() const override final;
+ void close() 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 b8b205f30..cfe8927d4 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -668,6 +668,7 @@
#define CMSG_BANK_WITHDRAW 0x09a9
#define CMSG_BANK_CHECK 0x09ab
#define CMSG_BANK_OPEN 0x09b6
+#define CMSG_BANK_CLOSE 0x09b8
#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 621b15c82..946f2e806 100644
--- a/src/net/tmwa/bankhandler.cpp
+++ b/src/net/tmwa/bankhandler.cpp
@@ -58,4 +58,8 @@ void BankHandler::open() const
{
}
+void BankHandler::close() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/bankhandler.h b/src/net/tmwa/bankhandler.h
index 6829d3608..b56c03c86 100644
--- a/src/net/tmwa/bankhandler.h
+++ b/src/net/tmwa/bankhandler.h
@@ -47,6 +47,8 @@ class BankHandler final : public MessageHandler,
void check() const override final;
void open() const override final;
+
+ void close() const override final;
};
} // namespace TmwAthena