static int InitSDK(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); SdkToIOS.InitSDK(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OpenLogoutAccount(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); SdkToIOS obj = (SdkToIOS)ToLua.CheckObject(L, 1, typeof(SdkToIOS)); obj.OpenLogoutAccount(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IOSCallPayClosedCallBack(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); SdkToIOS obj = (SdkToIOS)ToLua.CheckObject(L, 1, typeof(SdkToIOS)); string arg0 = ToLua.CheckString(L, 2); obj.IOSCallPayClosedCallBack(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreateInstance(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); SdkToIOS o = MonoSingleton <SdkToIOS> .CreateInstance(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UploadRoleInfo(IntPtr L) { try { ToLua.CheckArgsCount(L, 7); SdkToIOS obj = (SdkToIOS)ToLua.CheckObject(L, 1, typeof(SdkToIOS)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); string arg3 = ToLua.CheckString(L, 5); int arg4 = (int)LuaDLL.luaL_checknumber(L, 6); int arg5 = (int)LuaDLL.luaL_checknumber(L, 7); obj.UploadRoleInfo(arg0, arg1, arg2, arg3, arg4, arg5); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OpenPay(IntPtr L) { try { ToLua.CheckArgsCount(L, 10); SdkToIOS obj = (SdkToIOS)ToLua.CheckObject(L, 1, typeof(SdkToIOS)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(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); string arg6 = ToLua.CheckString(L, 8); int arg7 = (int)LuaDLL.luaL_checknumber(L, 9); string arg8 = ToLua.CheckString(L, 10); obj.OpenPay(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }