public static Godot.Array MakeGDArray(params object[] array) { Godot.Array gdArray = new Godot.Array(); foreach (object obj in array) { gdArray.Add(obj); } return(gdArray); }
public static Godot.Array ToGDArray(this object[] array) { Godot.Array gdArray = new Godot.Array(); foreach (object obj in array) { gdArray.Add(obj); } return(gdArray); }
// Create an array using a single value public static Godot.Array ArrayWrap(object obj) { Godot.Array arr = new Godot.Array(); arr.Add(obj); return(arr); }
public static Godot.Array ToGDArray(this object obj) { Godot.Array gdArray = new Godot.Array(); gdArray.Add(obj); return(gdArray); }