Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 13, 2011, 5:49:41 PM (13 years ago)
Author:
dafrick
Message:

Extending startGame and similar console commands, now also the level to be started (or in case of startClient, the destination) can be specified (but doesn't have to).
Additionally startMainMenu is now in GSLevel and can only be executed in a Level, as opposed to only in the MainMenu as it was before.
Added changeGame console command which works in a level in standalone mode to change to a different level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSMainMenu.h

    r6746 r7876  
    5353        void setMainMenuSoundPath(const std::string& path);
    5454
    55         static void startStandalone();
    56         static void startServer();
    57         static void startClient();
    58         static void startDedicated();
    59         static void startMainMenu();
     55        static void startStandalone(const std::string& level = BLANKSTRING); //!< Start a level in standalone mode.
     56        static void startServer(const std::string& level = BLANKSTRING); //!< Start a level in server mode.
     57        static void startClient(const std::string& destination = BLANKSTRING); //!< Connect to a game as client.
     58        static void startDedicated(const std::string& level = BLANKSTRING); //!< Start a level in dedicated mode.
    6059        static void startIOConsole();
    6160
Note: See TracChangeset for help on using the changeset viewer.