You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
423 B
18 lines
423 B
1 year ago
|
namespace StabilityMatrix.Core.Models.Api.Comfy.Nodes;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Skeleton node that relays the output of another node
|
||
|
/// </summary>
|
||
|
public record RerouteNode(object[] Connection) : IOutputNode
|
||
|
{
|
||
|
/// <inheritdoc />
|
||
|
public object[] GetOutput(int index)
|
||
|
{
|
||
|
if (index != 0)
|
||
|
{
|
||
|
throw new ArgumentOutOfRangeException(nameof(index));
|
||
|
}
|
||
|
return Connection;
|
||
|
}
|
||
|
}
|