static int set_itemProvider(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GList obj = (FairyGUI.GList)o; FairyGUI.ListItemProvider arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (FairyGUI.ListItemProvider)ToLua.CheckObject(L, 2, typeof(FairyGUI.ListItemProvider)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(FairyGUI.ListItemProvider), func) as FairyGUI.ListItemProvider; } obj.itemProvider = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index itemProvider on a nil value" : e.Message)); } }
static StackObject *AssignFromStack_itemProvider_1(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; FairyGUI.ListItemProvider @itemProvider = (FairyGUI.ListItemProvider) typeof(FairyGUI.ListItemProvider).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8); ((FairyGUI.GList)o).itemProvider = @itemProvider; return(ptr_of_this_method); }
public static Delegate FairyGUI_ListItemProvider(LuaFunction func) { if (func == null) { FairyGUI.ListItemProvider fn = delegate { return(null); }; return(fn); } FairyGUI.ListItemProvider d = (new FairyGUI_ListItemProvider_Event(func)).Call; return(d); }
static int get_itemProvider(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GList obj = (FairyGUI.GList)o; FairyGUI.ListItemProvider ret = obj.itemProvider; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index itemProvider on a nil value" : e.Message)); } }
static int set_itemProvider(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GList obj = (FairyGUI.GList)o; FairyGUI.ListItemProvider arg0 = (FairyGUI.ListItemProvider)ToLua.CheckDelegate <FairyGUI.ListItemProvider>(L, 2); obj.itemProvider = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index itemProvider on a nil value")); } }
public static Delegate FairyGUI_ListItemProvider(LuaFunction func, LuaTable self, bool flag) { if (func == null) { FairyGUI.ListItemProvider fn = delegate(int param0) { return(null); }; return(fn); } if (!flag) { FairyGUI.ListItemProvider d = (new FairyGUI_ListItemProvider_Event(func)).Call; return(d); } else { FairyGUI.ListItemProvider d = (new FairyGUI_ListItemProvider_Event(func, self)).CallWithSelf; return(d); } }
static internal int checkDelegate(IntPtr l, int p, out FairyGUI.ListItemProvider 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 = (FairyGUI.ListItemProvider)checkObj(l, p); return(op); } LuaDelegate ld; checkType(l, -1, out ld); if (ld.d != null) { ua = (FairyGUI.ListItemProvider)ld.d; return(op); } LuaDLL.lua_pop(l, 1); l = LuaState.get(l).L; ua = (int a1) => { int error = pushTry(l); pushValue(l, a1); ld.pcall(1, error); string ret; checkType(l, error + 1, out ret); LuaDLL.lua_settop(l, error - 1); return(ret); }; ld.d = ua; return(op); }