Added IExecutable and ISlotContainer interface.
Changed SlotContainerNode to ExecutableNode
This commit is contained in:
18
Runtime/Helpers/DataNodeExtension.cs
Normal file
18
Runtime/Helpers/DataNodeExtension.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Misaki.GraphView
|
||||
{
|
||||
public static class DataNodeExtension
|
||||
{
|
||||
public static void ClearAllExecuteFlag(this IList<DataNode> nodes)
|
||||
{
|
||||
foreach (var node in nodes)
|
||||
{
|
||||
if (node is IExecutable executable)
|
||||
{
|
||||
executable.ClearExecutionFlag();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user