Пример #1
0
 public MethodNode()
 {
     name         = "Method Member";
     m_ReturnType = CreateInputSlot <CodeTypeReferenceSlot>("returnType", "ReturnType (ref)");
     m_ReturnType.SetValue("System.Void");
     m_Parameters = CreateInputSlot <EmptySlot <CodeParameterDeclarationExpression> >("parameters", "Parameters (dec exp)");
     m_Parameters.allowMultipleConnections = true;
     m_Statements = CreateInputSlot <EmptySlot <CodeStatement> >("statements", "Statements (stm)");
     m_Statements.allowMultipleConnections = true;
 }
Пример #2
0
 public ParameterNode()
 {
     name = "Parameter Declaration";
     CreateOutputSlot <GetterSlot <CodeParameterDeclarationExpression> >("out", "Out (dec exp)").SetGetter(Build);
     m_Type = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type (ref)");
 }
Пример #3
0
 public CastExpressionNode() : base("out", "Cast (exp)")
 {
     m_Type       = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type (ref)");
     m_Expression = CreateInputSlot <EmptySlot <CodeExpression> >("exp", "Cast (exp)");
 }
 public ObjectCreateExpressionNode() : base("out", "Object (exp)")
 {
     m_Type       = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type");
     m_Parameters = CreateInputSlot <EmptySlot <CodeExpression> >("parameters", "Parameters");
     m_Parameters.allowMultipleConnections = true;
 }
Пример #5
0
 public FieldNode()
 {
     name            = "Field Member";
     m_VariableType  = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type (ref)");
     m_InitExpresion = CreateInputSlot <EmptySlot <CodeExpression> >("init", "Init (exp)");
 }