static int setHallTimer(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); YX_APIManage.DelegateNetHallCallBack arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (YX_APIManage.DelegateNetHallCallBack)ToLua.CheckObject(L, 2, typeof(YX_APIManage.DelegateNetHallCallBack)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(YX_APIManage.DelegateNetHallCallBack), func) as YX_APIManage.DelegateNetHallCallBack; } obj.setHallTimer(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_delegateIAppPayResp(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); YX_APIManage obj = (YX_APIManage)o; YX_APIManage.DelegateIAppPayResp arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (YX_APIManage.DelegateIAppPayResp)ToLua.CheckObject(L, 2, typeof(YX_APIManage.DelegateIAppPayResp)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(YX_APIManage.DelegateIAppPayResp), func) as YX_APIManage.DelegateIAppPayResp; } obj.delegateIAppPayResp = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delegateIAppPayResp on a nil value" : e.Message)); } }
static int startIAppPay(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); string arg0 = ToLua.CheckString(L, 2); YX_APIManage.DelegateIAppPayResp arg1 = null; LuaTypes funcType3 = LuaDLL.lua_type(L, 3); if (funcType3 != LuaTypes.LUA_TFUNCTION) { arg1 = (YX_APIManage.DelegateIAppPayResp)ToLua.CheckObject(L, 3, typeof(YX_APIManage.DelegateIAppPayResp)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 3); arg1 = DelegateFactory.CreateDelegate(typeof(YX_APIManage.DelegateIAppPayResp), func) as YX_APIManage.DelegateIAppPayResp; } obj.startIAppPay(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int WeiXinLogin(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.WeiXinLogin(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Awake(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); obj.Awake(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int nowTime(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); long o = obj.nowTime(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int deleteFile(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); string arg0 = ToLua.CheckString(L, 2); obj.deleteFile(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int onGetStoragePath(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); string o = obj.onGetStoragePath(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int onWeiXinLoginCallBack(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); string arg0 = ToLua.CheckString(L, 2); obj.onWeiXinLoginCallBack(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int YX_IsEnableBattery(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.YX_IsEnableBattery(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int read(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); string arg0 = ToLua.CheckString(L, 2); string o = obj.read(arg0); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_CurrentReachability(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); YX_APIManage obj = (YX_APIManage)o; UnityEngine.NetworkReachability arg0 = (UnityEngine.NetworkReachability)ToLua.CheckObject(L, 2, typeof(UnityEngine.NetworkReachability)); obj.CurrentReachability = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurrentReachability on a nil value" : e.Message)); } }
static int get_CurrentReachability(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); YX_APIManage obj = (YX_APIManage)o; UnityEngine.NetworkReachability ret = obj.CurrentReachability; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurrentReachability on a nil value" : e.Message)); } }
static int get_delegateIAppPayResp(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); YX_APIManage obj = (YX_APIManage)o; YX_APIManage.DelegateIAppPayResp ret = obj.delegateIAppPayResp; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delegateIAppPayResp on a nil value" : e.Message)); } }
static int get_getcopyCallback(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); YX_APIManage obj = (YX_APIManage)o; YX_APIManage.getCopyCall ret = obj.getcopyCallback; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index getcopyCallback on a nil value" : e.Message)); } }
static int WeiXinShare(IntPtr L) { try { ToLua.CheckArgsCount(L, 7); YX_APIManage obj = (YX_APIManage)ToLua.CheckObject(L, 1, typeof(YX_APIManage)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); string arg2 = ToLua.CheckString(L, 4); string arg3 = ToLua.CheckString(L, 5); string arg4 = ToLua.CheckString(L, 6); string arg5 = ToLua.CheckString(L, 7); obj.WeiXinShare(arg0, arg1, arg2, arg3, arg4, arg5); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }