Singularity/Library/PackageCache/com.unity.visualscripting@1.../Runtime/VisualScripting.Flow/Ports/IUnitPort.cs

27 lines
881 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
using System.Collections.Generic;
namespace Unity.VisualScripting
{
public interface IUnitPort : IGraphItem
{
IUnit unit { get; set; }
string key { get; }
IEnumerable<IUnitRelation> relations { get; }
IEnumerable<IUnitConnection> validConnections { get; }
IEnumerable<InvalidConnection> invalidConnections { get; }
IEnumerable<IUnitConnection> connections { get; }
IEnumerable<IUnitPort> connectedPorts { get; }
bool hasAnyConnection { get; }
bool hasValidConnection { get; }
bool hasInvalidConnection { get; }
bool CanInvalidlyConnectTo(IUnitPort port);
bool CanValidlyConnectTo(IUnitPort port);
void InvalidlyConnectTo(IUnitPort port);
void ValidlyConnectTo(IUnitPort port);
void Disconnect();
IUnitPort CompatiblePort(IUnit unit);
}
}