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

ShowNextTileset() public method

public ShowNextTileset ( ) : void
return void
        public void ShowNextTileset()
        {
            int nextIndex = this._tileSetTextures.IndexOf(this._currentTileSetSprite.Texture) + 1;

            if (nextIndex >= this._tileSetTextures.Count)
                return;

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

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