public GridFloodAction(GridLayer gridLayer, int cellX, int cellY, bool setTo) : base(gridLayer) { CellX = cellX; CellY = cellY; SetTo = setTo; }
public GridDrawAction(GridLayer gridLayer, Point at, bool setTo) : base(gridLayer) { draw = new List<Point>(); draw.Add(at); this.setTo = setTo; }
public GridSelection(GridLayer layer, Rectangle area) { Layer = layer; Area = area; Under = new bool[Area.Width, Area.Height]; }
public GridSelection(GridLayer layer, Rectangle area) { Layer = layer; Area = area; Under = new bool[Area.Width, Area.Height]; }
public GridPasteSelectionAction(GridLayer gridLayer, Rectangle area, bool[,] bits) : base(gridLayer) { newBits = bits; this.area = area; this.area.X = Math.Min(area.X, gridLayer.GridCellsX - area.Width); this.area.Y = Math.Min(area.Y, gridLayer.GridCellsY - area.Height); }
public GridRectangleAction(GridLayer gridLayer, int cellX, int cellY, int width, int height, bool setTo) : base(gridLayer) { CellX = cellX; CellY = cellY; Width = width; Height = height; SetTo = setTo; }
public GridClipboardItem(Rectangle area, GridLayer layer) : base() { Area = area; Bits = new bool[Area.Width, Area.Height]; for (int i = 0; i < Area.Width; i++) for (int j = 0; j < Area.Height; j++) Bits[i, j] = layer.Grid[i + Area.X, j + Area.Y]; }
public GridClearSelectionAction(GridLayer gridLayer) : base(gridLayer) { }
public GridMoveSelectionAction(GridLayer gridLayer, Point move) : base(gridLayer) { this.move = move; }
public GridDeleteSelectionAction(GridLayer gridLayer) : base(gridLayer) { }
public GridAction(GridLayer gridLayer) { GridLayer = gridLayer; }
public GridLayerEditor(LevelEditor levelEditor, GridLayer layer) : base(levelEditor, layer) { Layer = layer; }
public GridRectangleAction(GridLayer gridLayer, Rectangle rect, bool setTo) : this(gridLayer, rect.X, rect.Y, rect.Width, rect.Height, setTo) { }
public GridSelectAction(GridLayer gridLayer, Rectangle selectArea) : base(gridLayer) { this.selectArea = selectArea; }