static public int AddChildAt(IntPtr l) { try { FairyGUI.TreeNode self = (FairyGUI.TreeNode)checkSelf(l); FairyGUI.TreeNode a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); var ret = self.AddChildAt(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int AddChildAt(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.TreeNode obj = (FairyGUI.TreeNode)ToLua.CheckObject(L, 1, typeof(FairyGUI.TreeNode)); FairyGUI.TreeNode arg0 = (FairyGUI.TreeNode)ToLua.CheckObject(L, 2, typeof(FairyGUI.TreeNode)); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); FairyGUI.TreeNode o = obj.AddChildAt(arg0, arg1); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }