summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 11:34:15 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 11:34:15 +0300
commit76f6e6411a11dbe380b7f9c7db5e53c38a36d46b (patch)
tree24f26bee523ae2273e63c04c8d8b4dde1f0eede8
parent69edff63cb86475db553b6adfb19fa5fd1c83a37 (diff)
downloadplus-76f6e6411a11dbe380b7f9c7db5e53c38a36d46b.tar.gz
plus-76f6e6411a11dbe380b7f9c7db5e53c38a36d46b.tar.bz2
plus-76f6e6411a11dbe380b7f9c7db5e53c38a36d46b.tar.xz
plus-76f6e6411a11dbe380b7f9c7db5e53c38a36d46b.zip
eathena: add menu variable.
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/net/eathena/menu.cpp28
-rw-r--r--src/net/eathena/menu.h33
4 files changed, 65 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 410a0d5a9..7a8591193 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1378,6 +1378,8 @@ SET(SRCS_EATHENA
net/eathena/loginhandler.h
net/eathena/mailhandler.cpp
net/eathena/mailhandler.h
+ net/eathena/menu.cpp
+ net/eathena/menu.h
net/eathena/menutype.h
net/eathena/mercenaryhandler.cpp
net/eathena/mercenaryhandler.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 6deccae3f..55b944f67 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1311,6 +1311,8 @@ manaplus_SOURCES += net/eathena/adminhandler.cpp \
net/eathena/loginhandler.h \
net/eathena/mailhandler.cpp \
net/eathena/mailhandler.h \
+ net/eathena/menu.cpp \
+ net/eathena/menu.h \
net/eathena/menutype.h \
net/eathena/mercenaryhandler.cpp \
net/eathena/mercenaryhandler.h \
diff --git a/src/net/eathena/menu.cpp b/src/net/eathena/menu.cpp
new file mode 100644
index 000000000..d80c8743f
--- /dev/null
+++ b/src/net/eathena/menu.cpp
@@ -0,0 +1,28 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "net/eathena/menutype.h"
+
+#include "debug.h"
+
+namespace EAthena
+{
+ MenuType::Type menu = MenuType::Unknown;
+} // namespace EAthena
diff --git a/src/net/eathena/menu.h b/src/net/eathena/menu.h
new file mode 100644
index 000000000..200f75f48
--- /dev/null
+++ b/src/net/eathena/menu.h
@@ -0,0 +1,33 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_EATHENA_MENU_H
+#define NET_EATHENA_MENU_H
+
+#include "net/eathena/menutype.h"
+
+#include "debug.h"
+
+namespace EAthena
+{
+ extern MenuType::Type menu;
+} // namespace EAthena
+
+#endif // NET_EATHENA_MENU_H