CEngineSharp_Client.World.Map.DrawLowerTiles C# (CSharp) Method

DrawLowerTiles() private method

private DrawLowerTiles ( RenderTarget window, int left, int top, int width, int height ) : void
window RenderTarget
left int
top int
width int
height int
return void
        private void DrawLowerTiles(RenderTarget window, int left, int top, int width, int height)
        {
            for (int x = left; x < width; x++)
            {
                for (int y = top; y < height; y++)
                {
                    if (this._tiles[x, y].GetLayer(Layers.Ground) != null)
                        window.Draw(this._tiles[x, y].GetLayer(Layers.Ground).Sprite);

                    if (this._tiles[x, y].GetLayer(Layers.Mask) != null)
                        window.Draw(this._tiles[x, y].GetLayer(Layers.Mask).Sprite);

                    if (this._tiles[x, y].GetLayer(Layers.Mask2) != null)
                        window.Draw(this._tiles[x, y].GetLayer(Layers.Mask2).Sprite);
                }
            }
        }