private void loadBodies(List <progressBodyCollection> nodes) { for (int i = nodes.Count - 1; i >= 0; i--) { progressBodyCollection body = nodes[i]; if (body == null) { continue; } if (bodies.ContainsKey(body.Body.displayName.LocalizeBodyName())) { continue; } List <progressStandard> bodySubNodes = body.getAllNodes; List <IStandardNode> newNodes = new List <IStandardNode>(); for (int j = bodySubNodes.Count - 1; j >= 0; j--) { StandardNodeUI node = new StandardNodeUI(bodySubNodes[j]); if (node == null) { continue; } newNodes.Add(node); } bodies.Add(body.Body.displayName.LocalizeBodyName(), newNodes); } }
private void loadPOIs(List <progressStandard> nodes) { for (int i = nodes.Count - 1; i >= 0; i--) { StandardNodeUI node = new StandardNodeUI(nodes[i]); if (node == null) { continue; } pois.Add(node); } }