static int _e_willRenderCanvases(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); UnityEngine.Canvas.WillRenderCanvases gen_delegate = translator.GetDelegate <UnityEngine.Canvas.WillRenderCanvases>(L, 2); if (gen_delegate == null) { return(LuaAPI.luaL_error(L, "#2 need UnityEngine.Canvas.WillRenderCanvases!")); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { UnityEngine.Canvas.willRenderCanvases += gen_delegate; return(0); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { UnityEngine.Canvas.willRenderCanvases -= 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.Canvas.willRenderCanvases!")); }
int UnityEngineCanvas_e_willRenderCanvases(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.Canvas.WillRenderCanvases gen_delegate = translator.GetDelegate <UnityEngine.Canvas.WillRenderCanvases>(L, 2); if (gen_delegate == null) { return(LuaAPI.luaL_error(L, "#2 need UnityEngine.Canvas.WillRenderCanvases!")); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { UnityEngine.Canvas.willRenderCanvases += gen_delegate; return(0); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { UnityEngine.Canvas.willRenderCanvases -= gen_delegate; return(0); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Canvas.willRenderCanvases!")); }
static int QPYX_set_willRenderCanvases_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.Canvas.willRenderCanvases' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Canvas'")); } if (QPYX_arg0_YXQP.op == EventOp.Add) { UnityEngine.Canvas.WillRenderCanvases QPYX_ev_YXQP = (UnityEngine.Canvas.WillRenderCanvases)QPYX_arg0_YXQP.func; UnityEngine.Canvas.willRenderCanvases += QPYX_ev_YXQP; } else if (QPYX_arg0_YXQP.op == EventOp.Sub) { UnityEngine.Canvas.WillRenderCanvases QPYX_ev_YXQP = (UnityEngine.Canvas.WillRenderCanvases)QPYX_arg0_YXQP.func; UnityEngine.Canvas.willRenderCanvases -= QPYX_ev_YXQP; } return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int set_willRenderCanvases(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.Canvas.willRenderCanvases' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Canvas'")); } if (arg0.op == EventOp.Add) { UnityEngine.Canvas.WillRenderCanvases ev = (UnityEngine.Canvas.WillRenderCanvases)arg0.func; UnityEngine.Canvas.willRenderCanvases += ev; } else if (arg0.op == EventOp.Sub) { UnityEngine.Canvas.WillRenderCanvases ev = (UnityEngine.Canvas.WillRenderCanvases)arg0.func; UnityEngine.Canvas.willRenderCanvases -= ev; } return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static internal int checkDelegate(IntPtr l, int p, out UnityEngine.Canvas.WillRenderCanvases 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.Canvas.WillRenderCanvases)checkObj(l, p); return(op); } LuaDelegate ld; checkType(l, -1, out ld); if (ld.d != null) { ua = (UnityEngine.Canvas.WillRenderCanvases)ld.d; return(op); } LuaDLL.lua_pop(l, 1); l = LuaState.get(l).L; ua = () => { int error = pushTry(l); ld.pcall(0, error); LuaDLL.lua_settop(l, error - 1); }; ld.d = ua; return(op); }
public static Delegate UnityEngine_Canvas_WillRenderCanvases(LuaFunction func) { if (func == null) { UnityEngine.Canvas.WillRenderCanvases fn = delegate { }; return(fn); } UnityEngine.Canvas.WillRenderCanvases d = (new UnityEngine_Canvas_WillRenderCanvases_Event(func)).Call; return(d); }
static int set_willRenderCanvases(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.Canvas.willRenderCanvases' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Canvas'")); } if (arg0.op == EventOp.Add) { UnityEngine.Canvas.WillRenderCanvases ev = (UnityEngine.Canvas.WillRenderCanvases) DelegateTraits <UnityEngine.Canvas.WillRenderCanvases> .Create(arg0.func); UnityEngine.Canvas.willRenderCanvases += ev; } else if (arg0.op == EventOp.Sub) { UnityEngine.Canvas.WillRenderCanvases ev = (UnityEngine.Canvas.WillRenderCanvases)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Canvas), "willRenderCanvases"); Delegate[] ds = ev.GetInvocationList(); LuaState state = LuaState.Get(L); for (int i = 0; i < ds.Length; i++) { ev = (UnityEngine.Canvas.WillRenderCanvases)ds[i]; LuaDelegate ld = ev.Target as LuaDelegate; if (ld != null && ld.func == arg0.func) { UnityEngine.Canvas.willRenderCanvases -= ev; state.DelayDispose(ld.func); break; } } arg0.func.Dispose(); } return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static StackObject *remove_willRenderCanvases_3(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.Canvas.WillRenderCanvases @value = (UnityEngine.Canvas.WillRenderCanvases) typeof(UnityEngine.Canvas.WillRenderCanvases).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); UnityEngine.Canvas.willRenderCanvases -= value; return(__ret); }
public static Delegate UnityEngine_Canvas_WillRenderCanvases(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Canvas.WillRenderCanvases fn = delegate() { }; return(fn); } if (!flag) { UnityEngine.Canvas.WillRenderCanvases d = (new UnityEngine_Canvas_WillRenderCanvases_Event(func)).Call; return(d); } else { UnityEngine.Canvas.WillRenderCanvases d = (new UnityEngine_Canvas_WillRenderCanvases_Event(func, self)).CallWithSelf; return(d); } }
public UnityEngine.Canvas.WillRenderCanvases UnityEngine_Canvas_WillRenderCanvases(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Canvas.WillRenderCanvases fn = delegate() { }; return(fn); } if (!flag) { UnityEngine_Canvas_WillRenderCanvases_Event target = new UnityEngine_Canvas_WillRenderCanvases_Event(func); UnityEngine.Canvas.WillRenderCanvases d = target.Call; target.method = d.Method; return(d); } else { UnityEngine_Canvas_WillRenderCanvases_Event target = new UnityEngine_Canvas_WillRenderCanvases_Event(func, self); UnityEngine.Canvas.WillRenderCanvases d = target.CallWithSelf; target.method = d.Method; return(d); } }
static internal int checkDelegate(IntPtr l,int p,out UnityEngine.Canvas.WillRenderCanvases 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.Canvas.WillRenderCanvases>(r,out ua)) return op; LuaDLL.lua_pop(l,1); ua = () => { int error = pushTry(l); LuaDLL.lua_getref(l, r); if (LuaDLL.lua_pcall(l, 0, -1, error) != 0) { LuaDLL.lua_pop(l, 1); } LuaDLL.lua_pop(l, 1); }; cacheDelegate(r,ua); return op; }
public static Delegate UnityEngine_Canvas_WillRenderCanvases_Self(LuaFunction func, LuaTable self) { UnityEngine.Canvas.WillRenderCanvases d = (new UnityEngine_Canvas_WillRenderCanvases_Event_Self(func, self)).Call; return(d); }
void Push_UnityEngine_Canvas_WillRenderCanvases(IntPtr L, UnityEngine.Canvas.WillRenderCanvases o) { ToLua.Push(L, o); }