DSL interpretation is working now. Changed map to be within GameData.

This commit is contained in:
=
2026-04-29 12:33:53 +02:00
parent 2f922b5e04
commit 17057487d6
7 changed files with 35 additions and 5 deletions
+6 -2
View File
@@ -92,9 +92,13 @@ public partial class CodingWindow : PanelContainer
string errorMessage = "";
bool didCompile;
for (int i = 1; i < editorWindow.GetChildCount(); i++)
for (int i = 0; i < editorWindow.GetChildCount(); i++)
{
editorWindow.GetChild<NodeDisplay>(i - 1).node.LinkNode(editorWindow.GetChild<NodeDisplay>(i).node);
if (i + 1 < editorWindow.GetChildCount())
{
editorWindow.GetChild<NodeDisplay>(i).node.LinkNode(editorWindow.GetChild<NodeDisplay>(i + 1).node);
}
editorWindow.GetChild<NodeDisplay>(i).node.ReadParameters(editorWindow.GetChild<NodeDisplay>(i));
}
ProgramInterpreter interpreter = new ProgramInterpreter(editorWindow.GetChild<NodeDisplay>(0).node);