public static IGameClient SinglePlayer() { // Create the game ISinglePlayer game = new GMFortress(); // Run the server thread, so we can connect new Thread(game.ServerThread).Start(); return game; }
public static IGameClient MultiPlayer(string[] args) { IOnlineGame game = null; // Read the mdlink file and parse it into the connection info ServerConnectInfo info = MDLinkReader.ReadMDLink(args[0]); // This is a temp variable for easy access string gamemode = info.gamemode.ToLower(); // Create the game object based on the game mode from mdlink if (gamemode.Equals("fortress")) { // Create the game game = new GMFortress(); // Assign the connection info game.connectinfo = info; } return game; }