示例#1
0
        public VarManager()
        {
            m_DiObjectManager.NewObjectBaseName = "NewVar_";

            m_ListDrawer = new VarListView(m_DiObjectManager);

            InitManagerEvent();
            diType.InitClassList();
            diContainer.InitClassList();
            ConnectValueType.InitClassList();
        }
        public bool ConncectValueTypeProc(INodeInput inCom, INodeOutput outCom)
        {
            Type inComType = inCom.GetType();

            ConnectValueType connectValueType = (ConnectValueType)Attribute.GetCustomAttribute(inComType, typeof(ConnectValueType));

            if (connectValueType != null)
            {
                return(connectValueType.Process(m_NodeGraph, inCom, outCom));
            }

            return(true);
        }