static int _e_reapplyDrivenProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); UnityEngine.RectTransform.ReapplyDrivenProperties gen_delegate = translator.GetDelegate <UnityEngine.RectTransform.ReapplyDrivenProperties>(L, 2); if (gen_delegate == null) { return(LuaAPI.luaL_error(L, "#2 need UnityEngine.RectTransform.ReapplyDrivenProperties!")); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { UnityEngine.RectTransform.reapplyDrivenProperties += gen_delegate; return(0); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { UnityEngine.RectTransform.reapplyDrivenProperties -= gen_delegate; return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.reapplyDrivenProperties!")); }
static int set_reapplyDrivenProperties(IntPtr L) { try { EventObject arg0 = null; if (LuaDLL.lua_isuserdata(L, 2) != 0) { arg0 = (EventObject)ToLua.ToObject(L, 2); } else { return(LuaDLL.luaL_throw(L, "The event 'UnityEngine.RectTransform.reapplyDrivenProperties' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.RectTransform'")); } if (arg0.op == EventOp.Add) { UnityEngine.RectTransform.ReapplyDrivenProperties ev = (UnityEngine.RectTransform.ReapplyDrivenProperties)arg0.func; UnityEngine.RectTransform.reapplyDrivenProperties += ev; } else if (arg0.op == EventOp.Sub) { UnityEngine.RectTransform.ReapplyDrivenProperties ev = (UnityEngine.RectTransform.ReapplyDrivenProperties)arg0.func; UnityEngine.RectTransform.reapplyDrivenProperties -= ev; } return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
int UnityEngineRectTransform_e_reapplyDrivenProperties(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.RectTransform.ReapplyDrivenProperties gen_delegate = translator.GetDelegate <UnityEngine.RectTransform.ReapplyDrivenProperties>(L, 2); if (gen_delegate == null) { return(LuaAPI.luaL_error(L, "#2 need UnityEngine.RectTransform.ReapplyDrivenProperties!")); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { UnityEngine.RectTransform.reapplyDrivenProperties += gen_delegate; return(0); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { UnityEngine.RectTransform.reapplyDrivenProperties -= gen_delegate; return(0); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.reapplyDrivenProperties!")); }
static internal int checkDelegate(IntPtr l, int p, out UnityEngine.RectTransform.ReapplyDrivenProperties ua) { int op = extractFunction(l, p); if (LuaDLL.lua_isnil(l, -1)) { ua = null; return(op); } int r = LuaDLL.luaS_checkcallback(l, -1); if (r < 0) { LuaDLL.luaL_error(l, "expect function"); } if (getCacheDelegate <UnityEngine.RectTransform.ReapplyDrivenProperties>(r, out ua)) { return(op); } LuaDLL.lua_pop(l, 1); ua = (UnityEngine.RectTransform a1) => { int error = pushTry(l); LuaDLL.lua_getref(l, r); pushValue(l, a1); if (LuaDLL.lua_pcall(l, 1, -1, error) != 0) { LuaDLL.lua_pop(l, 1); } LuaDLL.lua_pop(l, 1); }; cacheDelegate(r, ua); return(op); }
static int QPYX_set_reapplyDrivenProperties_YXQP(IntPtr L_YXQP) { try { EventObject QPYX_arg0_YXQP = null; if (LuaDLL.lua_isuserdata(L_YXQP, 2) != 0) { QPYX_arg0_YXQP = (EventObject)ToLua.ToObject(L_YXQP, 2); } else { return(LuaDLL.luaL_throw(L_YXQP, "The event 'UnityEngine.RectTransform.reapplyDrivenProperties' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.RectTransform'")); } if (QPYX_arg0_YXQP.op == EventOp.Add) { UnityEngine.RectTransform.ReapplyDrivenProperties QPYX_ev_YXQP = (UnityEngine.RectTransform.ReapplyDrivenProperties)QPYX_arg0_YXQP.func; UnityEngine.RectTransform.reapplyDrivenProperties += QPYX_ev_YXQP; } else if (QPYX_arg0_YXQP.op == EventOp.Sub) { UnityEngine.RectTransform.ReapplyDrivenProperties QPYX_ev_YXQP = (UnityEngine.RectTransform.ReapplyDrivenProperties)QPYX_arg0_YXQP.func; UnityEngine.RectTransform.reapplyDrivenProperties -= QPYX_ev_YXQP; } return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
public static Delegate UnityEngine_RectTransform_ReapplyDrivenProperties(LuaFunction func) { if (func == null) { UnityEngine.RectTransform.ReapplyDrivenProperties fn = delegate { }; return(fn); } UnityEngine.RectTransform.ReapplyDrivenProperties d = (new UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func)).Call; return(d); }
static int set_reapplyDrivenProperties(IntPtr L) { try { EventObject arg0 = null; if (LuaDLL.lua_isuserdata(L, 2) != 0) { arg0 = (EventObject)ToLua.ToObject(L, 2); } else { return(LuaDLL.luaL_throw(L, "The event 'UnityEngine.RectTransform.reapplyDrivenProperties' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.RectTransform'")); } if (arg0.op == EventOp.Add) { UnityEngine.RectTransform.ReapplyDrivenProperties ev = (UnityEngine.RectTransform.ReapplyDrivenProperties) DelegateTraits <UnityEngine.RectTransform.ReapplyDrivenProperties> .Create(arg0.func); UnityEngine.RectTransform.reapplyDrivenProperties += ev; } else if (arg0.op == EventOp.Sub) { UnityEngine.RectTransform.ReapplyDrivenProperties ev = (UnityEngine.RectTransform.ReapplyDrivenProperties)LuaMisc.GetEventHandler(null, typeof(UnityEngine.RectTransform), "reapplyDrivenProperties"); Delegate[] ds = ev.GetInvocationList(); LuaState state = LuaState.Get(L); for (int i = 0; i < ds.Length; i++) { ev = (UnityEngine.RectTransform.ReapplyDrivenProperties)ds[i]; LuaDelegate ld = ev.Target as LuaDelegate; if (ld != null && ld.func == arg0.func) { UnityEngine.RectTransform.reapplyDrivenProperties -= ev; state.DelayDispose(ld.func); break; } } arg0.func.Dispose(); } return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static StackObject *remove_reapplyDrivenProperties_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.RectTransform.ReapplyDrivenProperties @value = (UnityEngine.RectTransform.ReapplyDrivenProperties) typeof(UnityEngine.RectTransform.ReapplyDrivenProperties).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); UnityEngine.RectTransform.reapplyDrivenProperties -= value; return(__ret); }
public static Delegate UnityEngine_RectTransform_ReapplyDrivenProperties(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.RectTransform.ReapplyDrivenProperties fn = delegate(UnityEngine.RectTransform param0) { }; return(fn); } if (!flag) { UnityEngine.RectTransform.ReapplyDrivenProperties d = (new UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func)).Call; return(d); } else { UnityEngine.RectTransform.ReapplyDrivenProperties d = (new UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func, self)).CallWithSelf; return(d); } }
static internal int checkDelegate(IntPtr l, int p, out UnityEngine.RectTransform.ReapplyDrivenProperties 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 = (UnityEngine.RectTransform.ReapplyDrivenProperties)checkObj(l, p); return(op); } if (LuaDLL.lua_isnil(l, -1)) { ua = null; return(op); } LuaDelegate ld; checkType(l, -1, out ld); LuaDLL.lua_pop(l, 1); if (ld.d != null) { ua = (UnityEngine.RectTransform.ReapplyDrivenProperties)ld.d; return(op); } l = LuaState.get(l).L; ua = (UnityEngine.RectTransform a1) => { int error = pushTry(l); pushValue(l, a1); ld.pcall(1, error); LuaDLL.lua_settop(l, error - 1); }; ld.d = ua; return(op); }
public UnityEngine.RectTransform.ReapplyDrivenProperties UnityEngine_RectTransform_ReapplyDrivenProperties(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.RectTransform.ReapplyDrivenProperties fn = delegate(UnityEngine.RectTransform param0) { }; return(fn); } if (!flag) { UnityEngine_RectTransform_ReapplyDrivenProperties_Event target = new UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func); UnityEngine.RectTransform.ReapplyDrivenProperties d = target.Call; target.method = d.Method; return(d); } else { UnityEngine_RectTransform_ReapplyDrivenProperties_Event target = new UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func, self); UnityEngine.RectTransform.ReapplyDrivenProperties d = target.CallWithSelf; target.method = d.Method; return(d); } }
void Push_UnityEngine_RectTransform_ReapplyDrivenProperties(IntPtr L, UnityEngine.RectTransform.ReapplyDrivenProperties o) { ToLua.Push(L, o); }
public static Delegate UnityEngine_RectTransform_ReapplyDrivenProperties_Self(LuaFunction func, LuaTable self) { UnityEngine.RectTransform.ReapplyDrivenProperties d = (new UnityEngine_RectTransform_ReapplyDrivenProperties_Event_Self(func, self)).Call; return(d); }