/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (CanyonShooterGame game = new CanyonShooterGame(args)) { game.Run(); } }
public void RunCS(object map) { List <string> parameters = new List <string>(); parameters.Add("--screenResolution"); parameters.Add("800x600"); parameters.Add("--quickGame"); parameters.Add(map.ToString()); using (CanyonShooterGame game = new CanyonShooterGame(parameters.ToArray())) { game.Run(); } MessageBox.Show("Preview Closed."); }