コード例 #1
0
 public void Link(Square neighbour, Direction dir)
 {
 }
コード例 #2
0
 private void SetLink(Square square, Direction dir, int x, int y)
 {
     int dirX = (width + x + dir.DeltaX) % width;
     int dirY = (height + y + dir.DeltaY) % height;
     Square neighbour = grid[dirX, dirY];
     square.Link(neighbour, dir);
 }