public void EditDelete()
{
if (Selection.IsActive)
{
for (int x = Selection.SelectionArea.Left; x < Selection.SelectionArea.Right; x++)
{
for (int y = Selection.SelectionArea.Top; y < Selection.SelectionArea.Bottom; y++)
{
UndoManager.SaveTile(x, y);
CurrentWorld.Tiles[x, y].Reset();
Color curBgColor = GetBackgroundColor(y);
PixelMap.SetPixelColor(x, y, Render.PixelMap.GetTileColor(CurrentWorld.Tiles[x, y], curBgColor, _showWalls, _showTiles, _showLiquid, _showRedWires, _showBlueWires, _showGreenWires, _showYellowWires));
}
}
UndoManager.SaveUndo();
}
}