summaryrefslogtreecommitdiff
path: root/src/subgame.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-04-08 23:15:50 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-04-08 23:17:02 +0300
commit42323014eaf359f76b388e75e788486bb0bda280 (patch)
tree46490264492dd1d69fc5b3528f5406d31ae64b08 /src/subgame.h
parentc59d139eebf06680bb4ea019b9a952c20e334154 (diff)
downloadminetest-42323014eaf359f76b388e75e788486bb0bda280.tar.gz
minetest-42323014eaf359f76b388e75e788486bb0bda280.tar.bz2
minetest-42323014eaf359f76b388e75e788486bb0bda280.zip
Support placing a minetest game inside $world/game to allow creating proper adventure maps
Pro-tip: You can open a world in minetest by opening the world.mt file using minetest.
Diffstat (limited to 'src/subgame.h')
-rw-r--r--src/subgame.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/subgame.h b/src/subgame.h
index 49e526d76..dd888ea00 100644
--- a/src/subgame.h
+++ b/src/subgame.h
@@ -47,7 +47,10 @@ struct SubgameSpec
}
};
+std::string getGameName(const std::string &game_path);
+
SubgameSpec findSubgame(const std::string &id);
+SubgameSpec findWorldSubgame(const std::string &world_path);
std::set<std::string> getAvailableGameIds();
std::vector<SubgameSpec> getAvailableGames();