public static GUIContent GetHierarchyIcon(ChiselNode node) { if (nodeDetailsLookup.TryGetValue(node.GetType(), out IChiselNodeDetails nodeDetails)) { return(nodeDetails.GetHierarchyIconForGenericNode(node)); } return(generatorDefaultDetails.GetHierarchyIconForGenericNode(node)); }
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)); }
public static GUIContent GetHierarchyIcon(ChiselNode node) { IChiselNodeDetails someInterface; if (nodeDetailsLookup.TryGetValue(node.GetType(), out someInterface)) { return(someInterface.GetHierarchyIconForGenericNode(node)); } return(null); }
public static IChiselNodeDetails GetNodeDetails(ChiselNode node) { IChiselNodeDetails someInterface; if (nodeDetailsLookup.TryGetValue(node.GetType(), out someInterface)) { return(someInterface); } return(null); }