public PathfinderNode(PathfinderNetwork ParentNetwork) { var tmpLayer = default(PathfinderLayer); if ( ParentNetwork.NodeLayerCount == 0 ) { tmpLayer = new PathfinderLayer(ParentNetwork); } else { tmpLayer = ParentNetwork.NodeLayers[0]; } Layer = tmpLayer; tmpLayer.Node_Add(this); }
public PathfinderLayer(PathfinderNetwork NewParentNetwork) { Network = NewParentNetwork; Network.NodeLayer_Add(this); }
public void ForceDeallocate() { var A = 0; for ( A = 0; A <= NodeCount - 1; A++ ) { Nodes[A].ForceDeallocate(); } Nodes = null; Connections = null; Network = null; ParentLayer = null; }