diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-13 00:43:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-13 00:43:25 +0300 |
commit | 9233c3936657f6dc4ca9c73d84ea8c045b3fc09d (patch) | |
tree | a7def2f0e6c8fcdaefd6f0f330da7e7eb6c9c0b0 /src/gui/npcdialog.h | |
parent | d3af59b8eedae98a49367e2ac37f2ab1b79c0557 (diff) | |
download | manaplus-9233c3936657f6dc4ca9c73d84ea8c045b3fc09d.tar.gz manaplus-9233c3936657f6dc4ca9c73d84ea8c045b3fc09d.tar.bz2 manaplus-9233c3936657f6dc4ca9c73d84ea8c045b3fc09d.tar.xz manaplus-9233c3936657f6dc4ca9c73d84ea8c045b3fc09d.zip |
move npc dialogs array from netcode.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r-- | src/gui/npcdialog.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index 3cdb39511..8a4e5b614 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -41,11 +41,14 @@ class BrowserBox; class ExtendedListBox; class ItemLinkHandler; class IntTextField; +class NpcDialog; class PlayerBox; class ScrollArea; class TextBox; class TextField; +typedef std::map<int, NpcDialog*> NpcDialogs; + /** * The npc dialog. * @@ -202,6 +205,10 @@ class NpcDialog final : public Window, void clearRows(); + static NpcDialogs mNpcDialogs; + + static void clearDialogs(); + private: typedef std::list<NpcDialog*> DialogList; static DialogList instances; |