Reworked DSL for better architecture, implemented wall-phasing movement.

This commit is contained in:
=
2026-04-29 15:13:38 +02:00
parent 832fb47ec0
commit a0109891e1
14 changed files with 172 additions and 139 deletions
+8 -2
View File
@@ -6,12 +6,12 @@ public class HarvestNode : ProgramNode
{
DisplayText = "Harvest";
}
public override bool Execute(Robot robot)
public override bool Execute(Robot robot, double delta)
{
GD.Print("Harvest");
if (nextNode != null)
{
return nextNode.Execute(robot);
return nextNode.Execute(robot, delta);
}
else
{
@@ -23,4 +23,10 @@ public class HarvestNode : ProgramNode
{
//
}
public override ProgramNode Duplicate()
{
HarvestNode duplicate = new HarvestNode();
return duplicate;
}
}