Пример #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);

            LibContent.LoadContent(this);

            //Load the tileset texture and plug it into the tile generators
            tilesetTexture = Content.Load <Texture2D>(GlobalData.TILESET_IMAGE_NAME);
            tileRectangleDrawer.SetTexture(tilesetTexture);
            edgeDecalManager.SetTexture(tilesetTexture);
        }
Пример #2
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            App.Register(_spriteBatch);

            Art.LoadContent(Content);
            SharedArt.LoadContent(Content);
            LibContent.SetContents();

            _text       = DependencyInjection.Resolve <IText>();
            _guiManager = new EditorGuiManager();
        }
Пример #3
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            Art.LoadContent(Content);
            SharedArt.LoadContent(Content);

            App.Register(_spriteBatch);
            LibContent.SetContents();
            LegacySuport.Load(_spriteBatch);

            _textContent      = DependencyInjection.Resolve <ITextContent>();
            _textContent.Size = 0.75f;

            _guiManager   = new GuiManager();
            _boardManager = new BoardManager();
        }