summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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