static int BeginLocation(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.BeginLocation(arg0); return(0); } else if (count == 4) { GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); obj.BeginLocation(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: GameSDKInterface.BeginLocation")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int JPushInitCrashHandler(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); obj.JPushInitCrashHandler(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int StopLocation(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); obj.StopLocation(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IsUserCloseNetWork(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); obj.IsUserCloseNetWork(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ShakePhone(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.ShakePhone(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int JPushIsPushStopped(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); bool o = obj.JPushIsPushStopped(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int JPushGetRegistrationId(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string o = obj.JPushGetRegistrationId(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AndroidIsSimulator(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); bool o = obj.AndroidIsSimulator(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCurChargeState(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); bool o = obj.GetCurChargeState(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCurSignalType(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string o = obj.GetCurSignalType(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCurBatteryLevel(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); int o = obj.GetCurBatteryLevel(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCurSdCardSize(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); float o = obj.GetCurSdCardSize(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int PauseEditorApplication(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.PauseEditorApplication(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetNativeAvatar(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.GetNativeAvatar(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CopyTextToClipboard(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string o = obj.CopyTextToClipboard(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int StartApp(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.StartApp(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int JPushSetLatestNotificationNumber(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); bool o = obj.JPushSetLatestNotificationNumber(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int BuglyPrintLog(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.BuglyPrintLog(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetAlarm(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); long arg0 = LuaDLL.tolua_checkint64(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.SetAlarm(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IsGpsOpen(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); bool o = obj.IsGpsOpen(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetIpsByHttpDNS(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); string o = obj.GetIpsByHttpDNS(arg0); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IsAppExist(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); bool o = obj.IsAppExist(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetImageSize(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.SetImageSize(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ReportException(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); obj.ReportException(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_onLogout(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameSDKInterface obj = (GameSDKInterface)o; GameSDKInterface.LogoutHandler arg0 = (GameSDKInterface.LogoutHandler)ToLua.CheckDelegate <GameSDKInterface.LogoutHandler>(L, 2); obj.onLogout = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onLogout on a nil value")); } }
static int SaveDataToIosKeychain(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); bool o = obj.SaveDataToIosKeychain(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_onLogout(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameSDKInterface obj = (GameSDKInterface)o; GameSDKInterface.LogoutHandler ret = obj.onLogout; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onLogout on a nil value")); } }
static int JPushSetPushTime(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); bool o = obj.JPushSetPushTime(arg0, arg1, arg2); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CaculateDistance(IntPtr L) { try { ToLua.CheckArgsCount(L, 5); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); double arg0 = (double)LuaDLL.luaL_checknumber(L, 2); double arg1 = (double)LuaDLL.luaL_checknumber(L, 3); double arg2 = (double)LuaDLL.luaL_checknumber(L, 4); double arg3 = (double)LuaDLL.luaL_checknumber(L, 5); double o = obj.CaculateDistance(arg0, arg1, arg2, arg3); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ProcessIpAndAddressFamily(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = null; System.Net.Sockets.AddressFamily arg2; bool o = obj.ProcessIpAndAddressFamily(arg0, out arg1, out arg2); LuaDLL.lua_pushboolean(L, o); LuaDLL.lua_pushstring(L, arg1); ToLua.Push(L, arg2); return(3); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }