public void SetMapDataByte(Point point, byte b) { UndoManager.RecordAction(new SetMapDataBytesAction(this, point, new MapDataBlock(new Size(1, 1), new byte[] { b }))); }
public void SetMapDataBytes(Point point, MapDataBlock data) { UndoManager.RecordAction(new SetMapDataBytesAction(this, point, data)); }
public void ClearMapDataBytes(Rectangle toClear) { MapDataBlock datab = new MapDataBlock(toClear.Size, Enumerable.Repeat((byte)0, toClear.Size.Width * toClear.Size.Height).ToArray()); UndoManager.RecordAction(new SetMapDataBytesAction(this, toClear.Location, datab)); }