예제 #1
0
파일: Map.cs 프로젝트: fa8ntomas/blck
 public void SetMapDataByte(Point point, byte b)
 {
     UndoManager.RecordAction(new SetMapDataBytesAction(this, point, new MapDataBlock(new Size(1, 1), new byte[] { b })));
 }
예제 #2
0
파일: Map.cs 프로젝트: fa8ntomas/blck
 public void SetMapDataBytes(Point point, MapDataBlock data)
 {
     UndoManager.RecordAction(new SetMapDataBytesAction(this, point, data));
 }
예제 #3
0
파일: Map.cs 프로젝트: fa8ntomas/blck
        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));
        }