feat: all cases of multidivert base structure
This commit is contained in:
@@ -58,6 +58,8 @@ public record TunnelListEndingReturnFromTunnel(Identifier? Divert);
|
||||
public record TunnelsAndDivertsList(Identifier[] TunnelIdentifiers, TunnelListEnding Ending)
|
||||
: IStoryNode
|
||||
{
|
||||
private const string Sep = ", ";
|
||||
|
||||
public virtual bool Equals(TunnelsAndDivertsList? other)
|
||||
{
|
||||
return other is not null && Ending.Equals(other.Ending) &&
|
||||
@@ -68,4 +70,9 @@ public record TunnelsAndDivertsList(Identifier[] TunnelIdentifiers, TunnelListEn
|
||||
{
|
||||
return HashCode.Combine(TunnelIdentifiers, Ending);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"TunnelsAndDivertsList({string.Join(Sep, TunnelIdentifiers.Select(i => i.ToString()))}, {Ending})";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user