コード例 #1
0
        private void OnLoadContent(object sender, GraphicsDeviceEventArgs e)
        {
            var container = new ServiceContainer();

            container.AddService(typeof(IGraphicsDeviceService), MonoGameInteropInjection.Container.Resolve <GraphicsDeviceService>());
            container.AddService(typeof(GraphicsDevice), e.GraphicsDevice);

            _internalModule.Prepare(_drawingSurface, container);
            _game.Initialize();
            _game.LoadContent();
            _internalModule.Run();
        }