From d55c5c381ad69863f056872e40a8dcd71e565f58 Mon Sep 17 00:00:00 2001 From: Emmanouil Dermitzakis Date: Mon, 2 Feb 2026 14:28:01 +0200 Subject: [PATCH] fix: update csharp objects for Godot --- CSharp/Interpreter/ArcscriptState.cs | 4 ++++ CSharp/Interpreter/INodes/IAttribute.cs | 1 + CSharp/Interpreter/INodes/IProject.cs | 2 +- CSharp/Project/Board.cs | 7 +++++-- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CSharp/Interpreter/ArcscriptState.cs b/CSharp/Interpreter/ArcscriptState.cs index 2e4622f..5b321e8 100644 --- a/CSharp/Interpreter/ArcscriptState.cs +++ b/CSharp/Interpreter/ArcscriptState.cs @@ -60,7 +60,11 @@ public void ResetVisits() { foreach (var board in project.Boards) { +#if GODOT + foreach (var element in board.Value.Elements) +#else foreach (var element in board.Nodes.OfType()) +#endif { element.Visits = 0; } diff --git a/CSharp/Interpreter/INodes/IAttribute.cs b/CSharp/Interpreter/INodes/IAttribute.cs index 2023d33..c4200d3 100644 --- a/CSharp/Interpreter/INodes/IAttribute.cs +++ b/CSharp/Interpreter/INodes/IAttribute.cs @@ -8,6 +8,7 @@ public enum DataType StringPlainText, StringRichText, ComponentList, + AssetList, } public enum ContainerType diff --git a/CSharp/Interpreter/INodes/IProject.cs b/CSharp/Interpreter/INodes/IProject.cs index c53029a..12afd10 100644 --- a/CSharp/Interpreter/INodes/IProject.cs +++ b/CSharp/Interpreter/INodes/IProject.cs @@ -11,7 +11,7 @@ public interface IProject { #if GODOT public Array Variables { get; } - public Array Boards { get; } + public Dictionary Boards { get; } #else public List Variables { get; } public List Boards { get; } diff --git a/CSharp/Project/Board.cs b/CSharp/Project/Board.cs index 7422aee..e5f53ca 100644 --- a/CSharp/Project/Board.cs +++ b/CSharp/Project/Board.cs @@ -6,9 +6,12 @@ namespace Arcweave.Project { public partial class Board { - public string Id { get; set; } + public string Id { get; set; } +#if GODOT + [Export] public Array Elements { get; private set; } +#else public List Nodes { get; set; } - +#endif public Board(string id, List nodes) { Id = id;