Pathfinding.QuadtreeGraph.RecalculateConnectionsRec C# (CSharp) Method

RecalculateConnectionsRec() public method

public RecalculateConnectionsRec ( QuadtreeNodeHolder holder, int depth, int x, int y ) : void
holder QuadtreeNodeHolder
depth int
x int
y int
return void
		public void RecalculateConnectionsRec (QuadtreeNodeHolder holder, int depth, int x, int y) {
			if (holder.node != null) {
				RecalculateConnections (holder, depth, x,y);
			} else {
				int width = 1 << (System.Math.Min (editorHeightLog2,editorWidthLog2)-depth);
				
				RecalculateConnectionsRec (holder.c0,depth+1,x          , y          );
				RecalculateConnectionsRec (holder.c1,depth+1,x + width/2, y          );
				RecalculateConnectionsRec (holder.c2,depth+1,x + width/2, y + width/2);
				RecalculateConnectionsRec (holder.c3,depth+1,x          , y + width/2);
			}
		}