From 52865ff4b24e3ea85967e76099b73f2e581a856d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 Jan 2016 21:24:02 +0300 Subject: Add function for return current npc dialog. --- src/net/ea/npchandler.cpp | 5 +++++ src/net/ea/npchandler.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'src/net/ea') diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp index fa6b0de2c..46c20c464 100644 --- a/src/net/ea/npchandler.cpp +++ b/src/net/ea/npchandler.cpp @@ -35,4 +35,9 @@ NpcHandler::NpcHandler() NpcRecv::mRequestLang = false; } +NpcDialog *NpcHandler::getCurrentNpcDialog() const +{ + return NpcRecv::mDialog; +} + } // namespace Ea diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h index 92d1a0b12..916f77556 100644 --- a/src/net/ea/npchandler.h +++ b/src/net/ea/npchandler.h @@ -35,6 +35,8 @@ class NpcHandler notfinal : public Net::NpcHandler public: A_DELETE_COPY(NpcHandler) + NpcDialog *getCurrentNpcDialog() const override final; + protected: NpcHandler(); }; -- cgit v1.2.3-70-g09d2