Reworked DSL for better architecture, implemented wall-phasing movement.
This commit is contained in:
@@ -6,12 +6,12 @@ public class CraftNode : ProgramNode
|
||||
{
|
||||
DisplayText = "Craft";
|
||||
}
|
||||
public override bool Execute(Robot robot)
|
||||
public override bool Execute(Robot robot, double delta)
|
||||
{
|
||||
GD.Print("Craft");
|
||||
if (nextNode != null)
|
||||
{
|
||||
return nextNode.Execute(robot);
|
||||
return nextNode.Execute(robot, delta);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -23,4 +23,10 @@ public class CraftNode : ProgramNode
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public override ProgramNode Duplicate()
|
||||
{
|
||||
CraftNode duplicate = new CraftNode();
|
||||
return duplicate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user