Exemple #1
0
 public static Godot.Array MakeGDArray(params object[] array)
 {
     Godot.Array gdArray = new Godot.Array();
     foreach (object obj in array)
     {
         gdArray.Add(obj);
     }
     return(gdArray);
 }
Exemple #2
0
 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);
 }
Exemple #4
0
 public static Godot.Array ToGDArray(this object obj)
 {
     Godot.Array gdArray = new Godot.Array();
     gdArray.Add(obj);
     return(gdArray);
 }