Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CSharp/Interpreter/ArcscriptState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Element>())
#endif
{
element.Visits = 0;
}
Expand Down
1 change: 1 addition & 0 deletions CSharp/Interpreter/INodes/IAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public enum DataType
StringPlainText,
StringRichText,
ComponentList,
AssetList,
}

public enum ContainerType
Expand Down
2 changes: 1 addition & 1 deletion CSharp/Interpreter/INodes/IProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface IProject
{
#if GODOT
public Array<Arcweave.Project.Variable> Variables { get; }
public Array<Arcweave.Project.Board> Boards { get; }
public Dictionary<string, Arcweave.Project.Board> Boards { get; }
#else
public List<Arcweave.Project.Variable> Variables { get; }
public List<Arcweave.Project.Board> Boards { get; }
Expand Down
7 changes: 5 additions & 2 deletions CSharp/Project/Board.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Element> Elements { get; private set; }
#else
public List<INode> Nodes { get; set; }
#endif
public Board(string id, List<INode> nodes)
{
Id = id;
Expand Down
Loading