internal static int checkDelegate(IntPtr l, int p, out UIPanel.OnClippingMoved ua) { int result = LuaObject.extractFunction(l, p); if (LuaDLL.pua_isnil(l, p)) { ua = null; return(result); } if (LuaDLL.pua_isuserdata(l, p) == 1) { ua = (UIPanel.OnClippingMoved)LuaObject.checkObj(l, p); return(result); } LuaDelegate ld; LuaObject.checkType(l, -1, out ld); LuaDLL.pua_pop(l, 1); if (ld.d != null) { ua = (UIPanel.OnClippingMoved)ld.d; return(result); } l = LuaState.get(l).L; ua = delegate(UIPanel a1) { int num = LuaObject.pushTry(l); LuaObject.pushValue(l, a1); ld.pcall(1, num); LuaDLL.pua_settop(l, num - 1); }; ld.d = ua; return(result); }
public static Delegate UIPanel_OnClippingMoved(LuaFunction func) { if (func == null) { UIPanel.OnClippingMoved fn = delegate { }; return(fn); } UIPanel.OnClippingMoved d = (new UIPanel_OnClippingMoved_Event(func)).Call; return(d); }
public static Delegate UIPanel_OnClippingMoved(LuaFunction func) { UIPanel.OnClippingMoved d = (param0) => { int top = func.BeginPCall(); IntPtr L = func.GetLuaState(); LuaScriptMgr.Push(L, param0); func.PCall(top, 1); func.EndPCall(top); }; return(d); }
static int get_onClipMove(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIPanel obj = (UIPanel)o; UIPanel.OnClippingMoved ret = obj.onClipMove; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onClipMove on a nil value")); } }
static int set_onClipMove(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIPanel obj = (UIPanel)o; UIPanel.OnClippingMoved arg0 = (UIPanel.OnClippingMoved)ToLua.CheckDelegate <UIPanel.OnClippingMoved>(L, 2); obj.onClipMove = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onClipMove on a nil value")); } }
public UIPanel.OnClippingMoved UIPanel_OnClippingMoved(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UIPanel.OnClippingMoved fn = delegate(UIPanel param0) { }; return(fn); } if (!flag) { UIPanel_OnClippingMoved_Event target = new UIPanel_OnClippingMoved_Event(func); UIPanel.OnClippingMoved d = target.Call; target.method = d.Method; return(d); } else { UIPanel_OnClippingMoved_Event target = new UIPanel_OnClippingMoved_Event(func, self); UIPanel.OnClippingMoved d = target.CallWithSelf; target.method = d.Method; return(d); } }
static internal int checkDelegate(IntPtr l, int p, out UIPanel.OnClippingMoved ua) { int op = extractFunction(l, p); if (LuaDLL.lua_isnil(l, p)) { ua = null; return(op); } else if (LuaDLL.lua_isuserdata(l, p) == 1) { ua = (UIPanel.OnClippingMoved)checkObj(l, p); return(op); } LuaDelegate ld; checkType(l, -1, out ld); if (ld.d != null) { ua = (UIPanel.OnClippingMoved)ld.d; return(op); } LuaDLL.lua_pop(l, 1); l = LuaState.get(l).L; ua = (UIPanel a1) => { int error = pushTry(l); pushValue(l, a1); ld.pcall(1, error); LuaDLL.lua_settop(l, error - 1); }; ld.d = ua; return(op); }
void Push_UIPanel_OnClippingMoved(IntPtr L, UIPanel.OnClippingMoved o) { ToLua.Push(L, o); }