Add new feature.

Added ILogger;
Added IGraphProcessor;

Changed return type of OnExecute method in BaseNode from void to bool;
This commit is contained in:
Misaki
2024-11-03 02:09:19 +09:00
parent e645a5327b
commit 5a9d8b9420
20 changed files with 332 additions and 40 deletions

View File

@@ -24,7 +24,9 @@ namespace Misaki.GraphView
public Vector3 graphPosition;
public Vector3 graphScale = Vector3.one;
public virtual IGraphProcessor GraphProcessor { get; } = null;
public virtual IValueConverterManager ValueConverterManager { get; } = null;
public virtual ILogger Logger { get; } = null;
private void OnEnable()
{
@@ -108,6 +110,15 @@ namespace Misaki.GraphView
graphScale = transform.scale;
}
public abstract void Execute();
public virtual void Execute()
{
if (GraphProcessor == null)
{
return;
}
GraphProcessor.UpdateComputeOrder();
GraphProcessor.Execute(Nodes);
}
}
}