예제 #1
0
 static void Main()
 {
     using (var game = new MyGame()) {
         game.ConfigureServices();
         var graphicsDeviceService = GameServices.GetService <IGraphicsDeviceService>();
         game.Services.AddService(graphicsDeviceService.GetType(), graphicsDeviceService);
         game.DesignEngine = GameServices.GetService <DesignEngine>();
         game.Run();
     }
 }