Added node highlight, fixed temporary load to include start node as well, fixed For-Condition

This commit is contained in:
2026-05-14 21:37:26 +02:00
parent eee59b6385
commit 672628ee13
9 changed files with 116 additions and 15 deletions
+4 -1
View File
@@ -11,8 +11,9 @@ public partial class Robot : Node3D
private const float CooldownTarget = 35f;
private const float MaintenanceLossPerSecond = 0.025f;
private bool isExecuting = false;
public bool isExecuting = false;
public ProgramNode programStartNode;
public ProgramNode currentNode;
public string currentProgram;
public string currentMessage = "";
@@ -103,6 +104,7 @@ public partial class Robot : Node3D
if (nodes.Count <= 0) return;
isExecuting = true;
programStartNode = nodes[0];
currentNode = nodes[0];
currentMessage = "";
}
@@ -110,6 +112,7 @@ public partial class Robot : Node3D
public void StopExecution(string message)
{
isExecuting = false;
programStartNode = null;
currentNode = null;
currentMessage = message;
}