1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00
Thor Brigsted 098f14f921 WIP
2019-05-09 00:23:53 +02:00

26 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using UnityEngine;
namespace XNode {
public interface INode {
string Name { get; set; }
INodeGraph Graph { get; }
Vector2 Position { get; set; }
object GetValue(NodePort port);
bool HasPort(string fieldName);
NodePort GetPort(string fieldName);
void UpdateStaticPorts();
IEnumerable<NodePort> Ports { get; }
IEnumerable<NodePort> Outputs { get; }
IEnumerable<NodePort> Inputs { get; }
IEnumerable<NodePort> DynamicPorts { get; }
NodePort AddDynamicPort(Type type, NodePort.IO direction, XNode.Node.ConnectionType connectionType = XNode.Node.ConnectionType.Multiple, Node.TypeConstraint typeConstraint = Node.TypeConstraint.None, string fieldName = null);
void RemoveDynamicPort(string fieldName);
NodePort GetInputPort(string fieldName);
NodePort GetOutputPort(string fieldName);
void OnCreateConnection(NodePort from, NodePort to);
void OnRemoveConnection(NodePort port);
void ClearConnections();
}
}