Esempio n. 1
0
    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));
        }
    }
Esempio n. 2
0
 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));
     }
 }
Esempio n. 3
0
 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));
     }
 }
Esempio n. 4
0
 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));
     }
 }
Esempio n. 5
0
 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));
     }
 }
Esempio n. 6
0
 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));
     }
 }
Esempio n. 7
0
 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));
     }
 }
Esempio n. 8
0
 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));
     }
 }
Esempio n. 9
0
 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));
     }
 }
Esempio n. 10
0
 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));
     }
 }
Esempio n. 11
0
 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));
     }
 }
Esempio n. 12
0
 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));
     }
 }
Esempio n. 13
0
 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));
     }
 }
Esempio n. 14
0
 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));
     }
 }
Esempio n. 15
0
 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));
     }
 }
Esempio n. 16
0
 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));
     }
 }
Esempio n. 17
0
 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));
     }
 }
Esempio n. 18
0
 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));
     }
 }
Esempio n. 19
0
 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));
     }
 }
Esempio n. 20
0
 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));
     }
 }
Esempio n. 21
0
 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));
     }
 }
Esempio n. 22
0
 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));
     }
 }
Esempio n. 23
0
 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));
     }
 }
Esempio n. 24
0
 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));
     }
 }
Esempio n. 25
0
    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"));
        }
    }
Esempio n. 26
0
 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));
     }
 }
Esempio n. 27
0
    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"));
        }
    }
Esempio n. 28
0
 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));
     }
 }
Esempio n. 29
0
 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));
     }
 }
Esempio n. 30
0
 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));
     }
 }