-void load_worldmap(const std::string& filename)
-{
- using namespace worldmap;
-
- if(World::current() == NULL)
- throw std::runtime_error("Can't start WorldMap without active world.");
-
- g_screen_manager->push_screen(std::unique_ptr<Screen>(new WorldMap(filename, World::current()->get_player_status())));
-}
-
-void load_level(const std::string& filename)
-{
- if(GameSession::current() == NULL)
- throw std::runtime_error("Can't start level without active level.");
-
- g_screen_manager->push_screen(std::unique_ptr<Screen>(new GameSession(filename, GameSession::current()->get_player_status())));
-}
-