Example #1
0
 public static IEnumerable <Type> GetExlusiveNodeTypesForGraph(PWGraphType graphType)
 {
     foreach (var nodeInfo in nodeInfoList)
     {
         if (nodeInfo.allowedGraphMask == (int)graphType)
         {
             foreach (var ni in nodeInfo.typeInfos)
             {
                 yield return(ni.type);
             }
         }
     }
 }
Example #2
0
        public static List <PWNodeTypeInfoList> GetAllowedNodesForGraph(PWGraphType graphType)
        {
            switch (graphType)
            {
            case PWGraphType.Main:
                return(mainGraphInfoList);

            case PWGraphType.Biome:
                return(biomeGraphInfoList);

            default:
                Debug.LogError("Could not find allowed nodes for the graph " + graphType);
                return(null);
            }
        }