Example #1
0
 public void SetMapDataByte(Point point, byte b)
 {
     UndoManager.RecordAction(new SetMapDataBytesAction(this, point, new MapDataBlock(new Size(1, 1), new byte[] { b })));
 }
Example #2
0
 public void SetMapDataBytes(Point point, MapDataBlock data)
 {
     UndoManager.RecordAction(new SetMapDataBytesAction(this, point, data));
 }
Example #3
0
        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));
        }