public static void AddDCTextures(NetInfo netInfo)
 {
     try {
         var node = NodeInfoUtil.CreateDCNode(netInfo.m_nodes[0], netInfo);
         if (node == null)
         {
             return;
         }
         netInfo.m_nodes                  = NodeInfoUtil.AddNode(netInfo.m_nodes, node);
         netInfo.m_connectGroup          |= node.m_connectGroup;
         netInfo.m_nodeConnectGroups     |= node.m_connectGroup;
         netInfo.m_requireDirectRenderers = true;
         AddedNodes.Add(node);
     }
     catch (Exception e) {
         Log.Error(e.ToString());
     }
 }
Example #2
0
 public static void AddDCTextures(NetInfo netInfo, float voffset /* = ASPHALT_HEIGHT*/)
 {
     try {
         var nodes = NodeInfoUtil.CreateDCNodes(netInfo.m_nodes[0], netInfo, voffset);
         if (nodes == null)
         {
             return;
         }
         foreach (var node in nodes)
         {
             netInfo.m_nodes                  = NodeInfoUtil.AddNode(netInfo.m_nodes, node);
             netInfo.m_connectGroup          |= node.m_connectGroup;
             netInfo.m_nodeConnectGroups     |= node.m_connectGroup;
             netInfo.m_requireDirectRenderers = true;
             AddedNodes.Add(node);
         }
     } catch (Exception e) {
         Log.Error(e.ToString());
     }
 }