Exemple #1
0
 public static void Main()
 {
     CultureInfo.DefaultThreadCurrentCulture   = CultureInfo.InvariantCulture;
     CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture;
     Log.RemoveAllLogSinks();
     Log.AddLogSink(new GameLogSink());
     Window.HandleUri          += HandleUriHandler;
     Window.Deactivated        += DeactivatedHandler;
     Window.Frame              += FrameHandler;
     Window.UnhandledException += delegate(UnhandledExceptionInfo e)
     {
         ExceptionManager.ReportExceptionToUser("Unhandled exception.", e.Exception);
         e.IsHandled = true;
     };
     Window.Run(1920, 1080, Engine.WindowMode.Resizable, "Survivalcraft 2");
 }