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);
}
}
}
}