static int set_delegateLoginResp(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); YX_APIManage obj = (YX_APIManage)o; YX_APIManage.DelegateLoginResp arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (YX_APIManage.DelegateLoginResp)ToLua.CheckObject(L, 2, typeof(YX_APIManage.DelegateLoginResp)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(YX_APIManage.DelegateLoginResp), func) as YX_APIManage.DelegateLoginResp; } obj.delegateLoginResp = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delegateLoginResp on a nil value" : e.Message)); } }
static int QQLogin(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); YX_APIManage.DelegateLoginResp arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (YX_APIManage.DelegateLoginResp)ToLua.CheckObject(L, 2, typeof(YX_APIManage.DelegateLoginResp)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(YX_APIManage.DelegateLoginResp), func) as YX_APIManage.DelegateLoginResp; } obj.QQLogin(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_delegateLoginResp(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); YX_APIManage obj = (YX_APIManage)o; YX_APIManage.DelegateLoginResp ret = obj.delegateLoginResp; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delegateLoginResp on a nil value" : e.Message)); } }