CEngineSharp_Editor.World.Map.Draw C# (CSharp) Метод

Draw() публичный Метод

public Draw ( RenderWindow window, int left, int top, int width, int height ) : void
window SFML.Graphics.RenderWindow
left int
top int
width int
height int
Результат void
        public void Draw(RenderWindow window, int left, int top, int width, int height)
        {
            width += left;
            height += top;

            for (int x = left; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    if (this.tiles[x, y] != null)
                    {
                        foreach (var layer in this.tiles[x, y].Layers)
                        {
                            if (layer != null)

                                window.Draw(layer.Sprite);
                        }

                        if (this.tiles[x, y].BlockedCover != null)
                            window.Draw(this.tiles[x, y].BlockedCover);
                    }
                }
            }
        }