From 7f7fb9750df3aceec48f65cee657e15364e0a911 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 11 Mar 2012 14:54:23 +0200 Subject: command-line/world game selection --- src/server.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index a1d7e5df7..4948b8ba1 100644 --- a/src/server.h +++ b/src/server.h @@ -34,6 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "serverremoteplayer.h" #include "mods.h" #include "inventorymanager.h" +#include "subgame.h" struct LuaState; typedef struct lua_State lua_State; class IWritableItemDefManager; @@ -405,11 +406,11 @@ public: /* NOTE: Every public method should be thread-safe */ - + Server( - std::string gamename, - std::string mapsavedir, - std::string configpath + const std::string &path_world, + const std::string &path_config, + const SubgameSpec &gamespec ); ~Server(); void start(unsigned short port); @@ -647,20 +648,15 @@ private: Variables */ - // Game name - std::string m_gamename; // World directory std::string m_path_world; // Path to user's configuration file ("" = no configuration file) std::string m_path_config; + // Subgame specification + SubgameSpec m_gamespec; // Equivalent of /usr/share/minetest/server std::string m_path_share; - // Equivalent of /usr/share/minetest/server/games/gamename - std::string m_path_game; - // Equivalent of /usr/share/minetest/server/addons/gamename - // and ~/.minetest/server/addons/gamename - std::set m_path_addons; // Some timers float m_liquid_transform_timer; -- cgit v1.2.3