Exemplo n.º 1
0
 private void RemoveRightColumnsFromRequest(ref RequstSector requstSector)
 {
     while (requstSector.width > 0)
     {
         CoordinateBasic cell = requstSector.coordinate + new Coordinate(requstSector.width - 1, 0);
         for (int i = 0; i < requstSector.height; i++)
         {
             if (!memory.ContainsKey(cell))
             {
                 return;
             }
             cell.y++;
         }
         requstSector = new RequstSector(requstSector.coordinate, height: requstSector.height, width: requstSector.width - 1);
     }
 }
Exemplo n.º 2
0
 private void RemoveTopRowsFromRequest(ref RequstSector requstSector)
 {
     while (requstSector.height > 0)
     {
         CoordinateBasic cell = requstSector.coordinate + new Coordinate(0, requstSector.height - 1);
         for (int i = 0; i < requstSector.width; i++)
         {
             if (!memory.ContainsKey(cell))
             {
                 return;
             }
             cell.x++;
         }
         requstSector = new RequstSector(requstSector.coordinate, height: requstSector.height - 1, width: requstSector.width);
     }
 }
Exemplo n.º 3
0
 public BrushTouple(CoordinateBasic offset, T value)
 {
     this.offset = offset;
     this.value  = value;
 }