Reworked node display and worked on DSL interpretation
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
|
||||
public class ProgramInterpreter
|
||||
{
|
||||
ProgramNode startNode;
|
||||
public ProgramInterpreter(ProgramNode startNode)
|
||||
{
|
||||
this.startNode = startNode;
|
||||
}
|
||||
|
||||
public bool Execute(Robot robot)
|
||||
{
|
||||
return startNode.Execute(robot);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user