Exemplo n.º 1
0
 public static GUIContent GetHierarchyIcon(ChiselNode node)
 {
     if (nodeDetailsLookup.TryGetValue(node.GetType(), out IChiselNodeDetails nodeDetails))
     {
         return(nodeDetails.GetHierarchyIconForGenericNode(node));
     }
     return(generatorDefaultDetails.GetHierarchyIconForGenericNode(node));
 }
Exemplo n.º 2
0
 public static IChiselNodeDetails GetNodeDetails(ChiselNode node)
 {
     if (nodeDetailsLookup.TryGetValue(node.GetType(), out IChiselNodeDetails nodeDetails))
     {
         return(nodeDetails);
     }
     return(generatorDefaultDetails);
 }
 public static bool HasValidState(ChiselNode node)
 {
     if (nodeDetailsLookup.TryGetValue(node.GetType(), out IChiselNodeDetails nodeDetails))
     {
         return(nodeDetails.HasValidState(node));
     }
     return(generatorDefaultDetails.HasValidState(node));
 }
 public static GUIContent GetHierarchyIcon(ChiselNode node, out bool hasValidState)
 {
     if (nodeDetailsLookup.TryGetValue(node.GetType(), out IChiselNodeDetails nodeDetails))
     {
         hasValidState = nodeDetails.HasValidState(node);
         return(nodeDetails.GetHierarchyIconForGenericNode(node));
     }
     hasValidState = generatorDefaultDetails.HasValidState(node);
     return(generatorDefaultDetails.GetHierarchyIconForGenericNode(node));
 }
Exemplo n.º 5
0
        public static GUIContent GetHierarchyIcon(ChiselNode node)
        {
            IChiselNodeDetails someInterface;

            if (nodeDetailsLookup.TryGetValue(node.GetType(), out someInterface))
            {
                return(someInterface.GetHierarchyIconForGenericNode(node));
            }
            return(null);
        }
Exemplo n.º 6
0
        public static IChiselNodeDetails GetNodeDetails(ChiselNode node)
        {
            IChiselNodeDetails someInterface;

            if (nodeDetailsLookup.TryGetValue(node.GetType(), out someInterface))
            {
                return(someInterface);
            }
            return(null);
        }