예제 #1
0
 public ScreenManager(ContentManager Content, GraphicsDevice device, Game1 gameRef)
 {
     _content = Content;
     _device = device;
     _screens = new List<IScreen>();
     Game = gameRef;
 }
예제 #2
0
파일: Program.cs 프로젝트: MyEyes/Igorr
 /// <summary>
 /// Der Haupteinstiegspunkt für die Anwendung.
 /// </summary>
 static void Main(string[] args)
 {
     try
     {
         IGORR.Modules.ModuleManager.SetContentDir("Content");
         IGORR.Modules.ModuleManager.LoadAllModules();
         using (Game1 game = new Game1())
         {
             game.Run();
         }
     }
     catch (Exception e)
     {
         if (!(e is System.Threading.ThreadAbortException))
             System.Windows.Forms.MessageBox.Show(e.ToString(), "Error: " + e.Message);
     }
 }