static int get_onClick(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.LuaClickListener obj = (LuaFramework.LuaClickListener)o; LuaFramework.LuaClickListener.VoidDelegate ret = obj.onClick; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onClick on a nil value")); } }
static int set_onClick(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.LuaClickListener obj = (LuaFramework.LuaClickListener)o; LuaFramework.LuaClickListener.VoidDelegate arg0 = (LuaFramework.LuaClickListener.VoidDelegate)ToLua.CheckDelegate <LuaFramework.LuaClickListener.VoidDelegate>(L, 2); obj.onClick = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onClick on a nil value")); } }
public LuaFramework.LuaClickListener.VoidDelegate LuaFramework_LuaClickListener_VoidDelegate(LuaFunction func, LuaTable self, bool flag) { if (func == null) { LuaFramework.LuaClickListener.VoidDelegate fn = delegate(UnityEngine.GameObject param0, float param1, float param2) { }; return(fn); } if (!flag) { LuaFramework_LuaClickListener_VoidDelegate_Event target = new LuaFramework_LuaClickListener_VoidDelegate_Event(func); LuaFramework.LuaClickListener.VoidDelegate d = target.Call; target.method = d.Method; return(d); } else { LuaFramework_LuaClickListener_VoidDelegate_Event target = new LuaFramework_LuaClickListener_VoidDelegate_Event(func, self); LuaFramework.LuaClickListener.VoidDelegate d = target.CallWithSelf; target.method = d.Method; return(d); } }
void Push_LuaFramework_LuaClickListener_VoidDelegate(IntPtr L, LuaFramework.LuaClickListener.VoidDelegate o) { ToLua.Push(L, o); }