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:
+14
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user