From 0aeab113a9c90d81a74b92aae908502e5cdd8f30 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Jan 2019 03:42:47 +0300 Subject: Add packet CMSG_REQ_REMAIN_TIME 0x01c0 --- src/net/eathena/gamehandler.cpp | 5 +++++ src/net/eathena/gamehandler.h | 2 ++ src/net/eathena/packetsout.inc | 2 ++ src/net/gamehandler.h | 2 ++ src/net/tmwa/gamehandler.cpp | 4 ++++ src/net/tmwa/gamehandler.h | 2 ++ 6 files changed, 17 insertions(+) (limited to 'src/net') diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp index 2a9f5028f..1ed6851dd 100644 --- a/src/net/eathena/gamehandler.cpp +++ b/src/net/eathena/gamehandler.cpp @@ -223,4 +223,9 @@ void GameHandler::disconnect2() const createOutPacket(CMSG_CLIENT_QUIT); } +void GameHandler::reqRemainTime() const +{ + createOutPacket(CMSG_REQ_REMAIN_TIME); +} + } // namespace EAthena diff --git a/src/net/eathena/gamehandler.h b/src/net/eathena/gamehandler.h index 864881c2d..a67bb0e5c 100644 --- a/src/net/eathena/gamehandler.h +++ b/src/net/eathena/gamehandler.h @@ -51,6 +51,8 @@ class GameHandler final : public Ea::GameHandler void mapLoadedEvent() const override final; + void reqRemainTime() const override final; + bool mustPing() const override final A_WARN_UNUSED { return true; } }; diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 8811c8a4a..ec05f490f 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -254,6 +254,8 @@ packet(CMSG_VENDING_CREATE_SHOP, 0x01b2, -1, clif->pOpenVending); packet(CMSG_MERGE_ITEM_ACK, 0x096e, -1, clif->ackmergeitems); packet(CMSG_MERGE_ITEM_CANCEL, 0x0974, 2, clif->cancelmergeitem); +packet(CMSG_REQ_REMAIN_TIME, 0x01c0, 2, clif->pReqRemainTime); + packet2(CMSG_SET_STATUS, 0x0b0e, 0, nullptr); packet2(CMSG_ONLINE_LIST, 0x0b0f, 0, nullptr); diff --git a/src/net/gamehandler.h b/src/net/gamehandler.h index 88bddcdbc..22b0bd7d4 100644 --- a/src/net/gamehandler.h +++ b/src/net/gamehandler.h @@ -62,6 +62,8 @@ class GameHandler notfinal virtual void initEngines() const = 0; virtual void clear() const = 0; + + virtual void reqRemainTime() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp index 5381f65aa..66a2fdce2 100644 --- a/src/net/tmwa/gamehandler.cpp +++ b/src/net/tmwa/gamehandler.cpp @@ -132,4 +132,8 @@ void GameHandler::disconnect2() const createOutPacket(CMSG_CLIENT_DISCONNECT); } +void GameHandler::reqRemainTime() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/gamehandler.h b/src/net/tmwa/gamehandler.h index 75df7737a..71fada81e 100644 --- a/src/net/tmwa/gamehandler.h +++ b/src/net/tmwa/gamehandler.h @@ -51,6 +51,8 @@ class GameHandler final : public Ea::GameHandler void mapLoadedEvent() const override final; + void reqRemainTime() const override final; + bool mustPing() const override final A_WARN_UNUSED { return false; } }; -- cgit v1.2.3-70-g09d2