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

@@ -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();
}
}

View 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);
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: bb7bfbfa8f972214c8ba4c2213d26581