public static void InitClassList() { if (ConvertNdoeDict.Count != 0) { return; } ConvertNdoeDict = AttributeTools.GetNamespaceCustomAttributes(typeof(AConvertNode)); foreach (var node in ConvertNdoeDict) { Logger.Info("ConvertNdoe Type: " + node.Key); } }
void InitBluePrintNodeClasses(SortedDictionary <string, System.Type> nodeDict) { if (nodeDict.Count != 0) { return; } var attrList = AttributeTools.GetNamespaceCustomAttributes(typeof(EditorNode)); foreach (var pair in attrList) { EditorNode node = (EditorNode)pair.Value; nodeDict.Add(node.Text, pair.Key); Logger.Info("Editor Node: " + pair.Key); } }