Added RelayNodeView;
Chnaged GraphView to multiple files for better organization;
This commit is contained in:
@@ -22,8 +22,8 @@ MonoBehaviour:
|
||||
contents: Test
|
||||
position:
|
||||
serializedVersion: 2
|
||||
x: 764.2733
|
||||
y: 223.30664
|
||||
x: 624.0001
|
||||
y: 217.33333
|
||||
width: 164
|
||||
height: 156.66666
|
||||
theme: 0
|
||||
@@ -55,7 +55,7 @@ MonoBehaviour:
|
||||
valueType: System.Object
|
||||
_exposedProperties:
|
||||
- rid: 299037523270959195
|
||||
graphPosition: {x: 72, y: 28.666666, z: 0}
|
||||
graphPosition: {x: 131.33333, y: -8, z: 0}
|
||||
graphScale: {x: 1, y: 1, z: 1}
|
||||
references:
|
||||
version: 2
|
||||
@@ -118,8 +118,8 @@ MonoBehaviour:
|
||||
slotIndex: 0
|
||||
direction: 1
|
||||
valueType: System.Single
|
||||
a: 0
|
||||
b: 0
|
||||
a: 1
|
||||
b: 1
|
||||
- rid: 299037570321612881
|
||||
type: {class: Output, ns: Misaki.GraphView.Sample, asm: GraphView.Sample}
|
||||
data:
|
||||
@@ -154,8 +154,8 @@ MonoBehaviour:
|
||||
id: 5ee073fb-e411-4061-867a-9ce3afd9a188
|
||||
position:
|
||||
serializedVersion: 2
|
||||
x: 335.3333
|
||||
y: 484.6667
|
||||
x: 357.66666
|
||||
y: 484.6665
|
||||
width: 98.66666
|
||||
height: 36
|
||||
_inputs: []
|
||||
|
||||
@@ -5,23 +5,26 @@ namespace Misaki.GraphView.Sample
|
||||
{
|
||||
public class Logger : ILogger
|
||||
{
|
||||
private readonly List<string> _logs = new ();
|
||||
|
||||
public Action<ExecutableNode, string, LogType> OnLog { get; set; }
|
||||
|
||||
public void LogInfo(ExecutableNode node, string message)
|
||||
private readonly List<string> _logs = new();
|
||||
|
||||
public Action<DataNode, string, LogType> OnLog
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public void LogInfo(DataNode node, string message)
|
||||
{
|
||||
_logs.Add($"Log Info from node {node.GetType().Name}: {message}");
|
||||
OnLog?.Invoke(node, message, LogType.Info);
|
||||
}
|
||||
|
||||
public void LogWarning(ExecutableNode node, string message)
|
||||
public void LogWarning(DataNode node, string message)
|
||||
{
|
||||
_logs.Add($"Log Warning from node {node.GetType().Name}: {message}");
|
||||
OnLog?.Invoke(node, message, LogType.Warning);
|
||||
}
|
||||
|
||||
public void LogError(ExecutableNode node, string message)
|
||||
public void LogError(DataNode node, string message)
|
||||
{
|
||||
_logs.Add($"Log Error from node {node.GetType().Name}: {message}");
|
||||
OnLog?.Invoke(node, message, LogType.Error);
|
||||
|
||||
Reference in New Issue
Block a user