CEngineSharp_Editor.Graphics.MapRenderer.LoadTileSets C# (CSharp) Method

LoadTileSets() private method

private LoadTileSets ( ) : void
return void
        private void LoadTileSets()
        {
            var dI = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory + "/Data/Graphics/TileSets/");

            this._tileSetTextures = new List<Texture>();

            foreach (var file in dI.GetFiles("*.png", SearchOption.TopDirectoryOnly))
            {
                _tileSetTextures.Add(new Texture(file.FullName));
            }

            this._currentTileSetSprite = new Sprite(_tileSetTextures[0]);

            this._tileSetSelector = new RectangleShape(new Vector2f(32, 32));
            this._tileSetSelector.OutlineColor = Color.Red;
            this._tileSetSelector.FillColor = Color.Transparent;
            this._tileSetSelector.OutlineThickness = 2f;

            this._selectedTileSprite = new Sprite(this._currentTileSetSprite.Texture, new IntRect((int)_tileSetSelector.Position.X, (int)_tileSetSelector.Position.Y, 32, 32));
        }