示例#1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            _spriteBatch = new SpriteBatch(GraphicsDevice);
            Font         = Content.Load <SpriteFont>("font");

            drawAdapter    = new MonoGameDrawManager(_spriteBatch);
            _drawVisitor   = new DrawVisitor(drawAdapter);
            _updateVisitor = new UpdateVisitor(drawAdapter);

            mainScreenElements  = screenFactory.CreateHomeCollectionScreen();
            labelScreenElements = screenFactory.CreateLabelCollectionScreen();
            inputScreenElements = screenFactory.CreateInputCollectionScreen();

            collection = screenFactory.CreateHomeCollectionScreen();
        }