Added more symbols to the game, added gates blocking pathfinding and improved DSL feedback system with enum for better control and UX

This commit is contained in:
=
2026-05-02 19:53:29 +02:00
parent ae7c98d482
commit a2c35c44cb
25 changed files with 277 additions and 30 deletions
+14 -5
View File
@@ -18,13 +18,22 @@ public partial class Robot : Node3D
{
if (isExecuting)
{
if (currentNode.Execute(this, delta))
switch (currentNode.Execute(this, delta))
{
currentNode = currentNode.nextNode;
if (currentNode == null)
{
case NodeResult.SUCCESS:
currentNode = currentNode.nextNode;
if (currentNode == null)
{
isExecuting = false;
}
break;
case NodeResult.FAILURE:
isExecuting = false;
}
GD.Print(currentNode.lastExecutionMessage);
break;
case NodeResult.RUNNING:
//Currently does nothing.
break;
}
}