Example #1
0
        public static void InitClassList()
        {
            if (TypeClassList.Count != 0)
            {
                return;
            }

            TypeClassList = AttributeTools.GetCustomAttributeClassList <IBluePrint>(typeof(BlueprintClass));
            foreach (var container in TypeClassList)
            {
                Logger.Info("BluePrint Class: " + container);
            }
        }
Example #2
0
        public static void InitClassList()
        {
            if (ContainerClassList.Count != 0)
            {
                return;
            }

            ContainerClassList = AttributeTools.GetCustomAttributeClassList <diContainer>(typeof(AValueContainer));
            foreach (var container in ContainerClassList)
            {
                Logger.Info("BluePrint Container: " + container);
            }
        }
Example #3
0
        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);
            }
        }
Example #4
0
        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);
            }
        }