Ejemplo n.º 1
0
        ///----------------------------------------------------------------------------------------------

        public static void Finalize(FlowNode node, Port sourcePort, object dropInstance)
        {
            FinalizeConnection(sourcePort, node);
            DropInstance(node, dropInstance);
            Select(node);
        }
Ejemplo n.º 2
0
 //...
 static void Select(FlowNode targetNode)
 {
     GraphEditorUtility.activeElement = targetNode;
 }
Ejemplo n.º 3
0
 ///Creates a generic instance of ValueOutput
 public static ValueOutput <T> CreateInstance <T>(FlowNode parent, string name, string ID, ValueHandler <T> getter)
 {
     return(new ValueOutput <T>(parent, name, ID, getter));
 }
Ejemplo n.º 4
0
 ///Creates a generic instance of ValueOutput
 public static ValueOutput CreateInstance(Type t, FlowNode parent, string name, string ID, ValueHandlerObject getter)
 {
     return((ValueOutput)Activator.CreateInstance(typeof(ValueOutput <>).RTMakeGenericType(t), new object[] { parent, name, ID, getter }));
 }
Ejemplo n.º 5
0
 public ValueOutput(FlowNode parent, string name, string ID) : base(parent, name, ID)
 {
 }
Ejemplo n.º 6
0
 ///Creates a generic instance of ValueInput
 public static ValueInput CreateInstance(Type t, FlowNode parent, string name, string ID)
 {
     return((ValueInput)Activator.CreateInstance(typeof(ValueInput <>).RTMakeGenericType(t), new object[] { parent, name, ID }));
 }
Ejemplo n.º 7
0
 ///Creates a generic instance of ValueInput
 public static ValueInput <T> CreateInstance <T>(FlowNode parent, string name, string ID)
 {
     return(new ValueInput <T>(parent, name, ID));
 }
Ejemplo n.º 8
0
 ///pointer refers to callback when the port is called
 public FlowInput(FlowNode parent, string name, string ID, FlowHandler pointer) : base(parent, name, ID)
 {
     this.pointer = pointer;
 }
Ejemplo n.º 9
0
 public Port(FlowNode parent, string name, string ID)
 {
     this.parent = parent;
     this.name   = name;
     this.ID     = ID;
 }