Exemplo n.º 1
0
        public override NodeGraphData Process()
        {
            NodeGraphFloatListData v_OutputData = new NodeGraphFloatListData();
            NodeGraphInvalidData v_Errors = new NodeGraphInvalidData();

            NodeGraphListData v_InputData = this.GetInputData();

            foreach (NodeGraphData i_InputData in v_InputData.Data)
            {
                if (i_InputData is NodeGraphFloatData)
                {
                    v_OutputData.Values.Add((i_InputData as NodeGraphFloatData).Value);
                }
                else if (i_InputData is NodeGraphInvalidData)
                {
                    v_Errors.Merge(i_InputData as NodeGraphInvalidData);

                }

            }


            return new NodeGraphTestResultData(v_OutputData, v_Errors);
        }
Exemplo n.º 2
0
 public NodeGraphTestResultData(NodeGraphFloatListData p_Data, NodeGraphInvalidData p_Errors)
 {
     m_Data = p_Data;
     m_Errors = p_Errors;
 }
Exemplo n.º 3
0
 public NodeGraphTestResultData(NodeGraphFloatListData p_Data, NodeGraphInvalidData p_Errors)
 {
     m_Data   = p_Data;
     m_Errors = p_Errors;
 }