コード例 #1
0
 /// <summary>
 /// Create the initial list of nodes from the patFile. No linking or preoccessing
 /// </summary>
 /// <param name="patFile">Patfile object containing the various unprocessed Track Path Nodes</param>
 /// <param name="Nodes">The list that is going to be filled with as-of-yet unlinked and almost unprocessed path nodes</param>
 private void CreateNodes(PathFile patFile, List <TrainpathNode> Nodes)
 {
     foreach (TrPathNode tpn in patFile.TrPathNodes)
     {
         Nodes.Add(TrainpathNode.CreatePathNode(tpn, patFile.TrackPDPs[(int)tpn.fromPDP], trackDB, tsectionDat));
     }
     FirstNode          = Nodes[0];
     FirstNode.NodeType = TrainpathNodeType.Start;
 }