Пример #1
0
        public void OnAddOutputParam(IParam param)
        {
            ParamOC paramOC = new ParamOC(param);

            m_OutputParams.Add(paramOC);
            AddComponet(paramOC);
        }
Пример #2
0
        public void OnAddInputParam(IParam param)
        {
            ParamIC paramIC = new ParamIC(param);

            m_InputParams.Add(paramIC);
            AddComponet(paramIC);
        }
Пример #3
0
        public virtual void NotifyAddInputParam(IParam param)
        {
            OnInputParamEvent?.Invoke(EInputParamEvent.AddParam, param);

            foreach (FunctionCallNode callNode in CallNodes)
            {
                callNode.OnAddInputParam(param);
            }
            foreach (FunctionEntryNode entryNode in EntryNodes)
            {
                entryNode.OnAddOutputParam(param);
            }
        }
Пример #4
0
        public virtual void NotifyAddOutputParam(IParam param)
        {
            OnOutputParamEvent?.Invoke(EOutputParamEvent.AddParam, param);

            foreach (FunctionCallNode callNode in CallNodes)
            {
                callNode.OnAddOutputParam(param);
            }
            foreach (FunctionReturnNode returnNode in ReturnNodes)
            {
                returnNode.OnAddInputParam(param);
            }
        }
Пример #5
0
 public void OutputParamEventProc(Function.EOutputParamEvent eOutputParamEvent, IParam param)
 {
     switch (eOutputParamEvent)
     {
     case Function.EOutputParamEvent.AddParam:
         if (m_Function.ReturnNodeCount == 0)
         {
             AddFristReturnNode();
         }
         break;
     }
 }
Пример #6
0
 public ParamOC(IParam param)
 {
     m_Param = param;
 }
Пример #7
0
 public ParamDefaultDrawer(IParam param)
 {
     m_Param = param;
 }
Пример #8
0
 public void AddParam(IParam variable) => m_DiObjectManager.AddObject(variable);