Пример #1
0
 public static void Main()
 {
     //Estas tres lineas crean la ventana base del proyecto (en el lenguaje del framework, un "juego"), y crean una ventana para el
     using DesktopGameHost host = Host.GetSuitableHost(@"GamesToGo");
     using Game program         = new GamesToGoEditor();
     host.Run(program);
 }
Пример #2
0
        public static void Main(params string[] args)
        {
            string server;

            if ((server = args.FirstOrDefault(a => a.StartsWith(@"--server="))) != null)
            {
                APIController.AlternativeServer = server.Substring(server.IndexOf('=') + 1);
            }
            //Estas tres lineas crean la ventana base del proyecto (en el lenguaje del framework, un "juego"), y crean una ventana para el
            using DesktopGameHost host = Host.GetSuitableHost(@"GamesToGo");
            using Game program         = new GamesToGoEditor();
            host.Run(program);
        }