Add new feature.
Added ILogger; Added IGraphProcessor; Changed return type of OnExecute method in BaseNode from void to bool;
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
namespace Misaki.GraphView
|
||||
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Misaki.GraphView
|
||||
{
|
||||
public interface IGraphProcessor
|
||||
{
|
||||
public bool IsRunning { get; }
|
||||
|
||||
public void UpdateComputeOrder();
|
||||
|
||||
public void Execute();
|
||||
public void Execute(ReadOnlyCollection<BaseNode> nodes);
|
||||
|
||||
public void Break();
|
||||
}
|
||||
}
|
||||
14
Runtime/Contracts/ILogger.cs
Normal file
14
Runtime/Contracts/ILogger.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Misaki.GraphView
|
||||
{
|
||||
public interface ILogger
|
||||
{
|
||||
public Action<BaseNode, string, LogType> OnLog { get; set; }
|
||||
|
||||
public void LogInfo(BaseNode node, string message);
|
||||
public void LogWarning(BaseNode node, string message);
|
||||
public void LogError(BaseNode node, string message);
|
||||
}
|
||||
}
|
||||
2
Runtime/Contracts/ILogger.cs.meta
Normal file
2
Runtime/Contracts/ILogger.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb7bfbfa8f972214c8ba4c2213d26581
|
||||
Reference in New Issue
Block a user