Example #1
0
 public static void PushArray(IntPtr L, object[] array)
 {
     LuaAPI.NewTable(L);
     LuaAPI.PushNumber(L, -1);
     LuaAPI.RawSetI(L, -2, 0);
     for (int i = 0; i < array.Length; i++)
     {
         PushObject(L, array[i]);
         LuaAPI.RawSetI(L, -2, i + 1);
     }
 }