示例#1
0
 void IInternalGameModule.Prepare(DrawingSurface drawingSurface, IServiceProvider provider)
 {
     _drawingSurface = drawingSurface;
     GraphicsDevice  = drawingSurface.GraphicsDevice;
     SpriteBatch     = new SpriteBatch((GraphicsDevice)provider.GetService(typeof(GraphicsDevice)));
     Content         = new ContentManager(provider, _contentDirectory);
     _updater        = new GameUpdater(Update, drawingSurface.Invalidate);
 }
 void IInternalGameModule.Prepare(DrawingSurface drawingSurface, IServiceProvider provider)
 {
     _drawingSurface = drawingSurface;
     GraphicsDevice = drawingSurface.GraphicsDevice;
     SpriteBatch = new SpriteBatch((GraphicsDevice)provider.GetService(typeof(GraphicsDevice)));
     Content = new ContentManager(provider, _contentDirectory);
     _updater = new GameUpdater(Update, drawingSurface.Invalidate);
 }