From 76f6e6411a11dbe380b7f9c7db5e53c38a36d46b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Sep 2014 11:34:15 +0300 Subject: eathena: add menu variable. --- src/CMakeLists.txt | 2 ++ src/Makefile.am | 2 ++ src/net/eathena/menu.cpp | 28 ++++++++++++++++++++++++++++ src/net/eathena/menu.h | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 src/net/eathena/menu.cpp create mode 100644 src/net/eathena/menu.h (limited to 'src') 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 . + */ + +#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 . + */ + +#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 -- cgit v1.2.3-60-g2f50