Changed PullData and PushData from SlotExtension to ISlot; Added BackTraceExecutableNode; Removed IExecutable from RelayNode;
19 lines
498 B
C#
19 lines
498 B
C#
namespace Misaki.GraphView.Sample
|
|
{
|
|
public abstract class BackTraceExecutableNode : ExecutableNode
|
|
{
|
|
protected override void OnPullData(ISlot input)
|
|
{
|
|
if (input.LinkedSlotDatas.Count == 0)
|
|
{
|
|
return;
|
|
}
|
|
|
|
var outputNode = GraphObject.GetNode(input.LinkedSlotDatas[0].nodeID);
|
|
if (outputNode is IExecutable executable)
|
|
{
|
|
executable.Execute();
|
|
}
|
|
}
|
|
}
|
|
} |