18 lines
304 B
C#
18 lines
304 B
C#
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);
|
|
}
|
|
|
|
|
|
} |