Closed cgbeutler closed 3 years ago
New output is
using System;
using Godot;
using Dictionary = Godot.Collections.Dictionary;
using Array = Godot.Collections.Array;
[Tool]
public class GameDataTest2 : Godot.Object
{
public Dictionary create_lookup( Array src, String field_name )
{
Dictionary result = new Dictionary(){};
foreach(var item in src)
{
var key = item.get(field_name);
if(!result.has(key))
result[key] = item;
}
return result;
}
}
In my result file I am getting every function formatted with brackets in the wrong place. Example of output issue:
Not sure what is causing the issue. The file has tabs, which I think is the Godot default:
As a side note, the file doesn't have a extends type. The one added is Godot.Object, but Godot technically has a default of Reference for all non-explicit types.