| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using System.Collections.Generic;
- using LuaInterface;
- public class SDKMgrWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(SDKMgr), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("SetHttpCheckUrl", SetHttpCheckUrl);
- L.RegFunction("Init", Init);
- L.RegFunction("Login", Login);
- L.RegFunction("Logout", Logout);
- L.RegFunction("Pay", Pay);
- L.RegFunction("EnterGame", EnterGame);
- L.RegFunction("CreateRole", CreateRole);
- L.RegFunction("ExitGame", ExitGame);
- L.RegFunction("UpdateRoleLv", UpdateRoleLv);
- L.RegFunction("SwitchAccount", SwitchAccount);
- L.RegFunction("Exit", Exit);
- L.RegFunction("Quit", Quit);
- L.RegFunction("IsReportAction", IsReportAction);
- L.RegFunction("ReportAction", ReportAction);
- L.RegFunction("GetSDKName", GetSDKName);
- L.RegFunction("SetLogined", SetLogined);
- L.RegFunction("SetInited", SetInited);
- L.RegFunction("GetLogined", GetLogined);
- L.RegFunction("GetInited", GetInited);
- L.RegFunction("CheckSpeech", CheckSpeech);
- L.RegFunction("CheckName", CheckName);
- L.RegFunction("Decode", Decode);
- L.RegFunction("CheckHasModul", CheckHasModul);
- L.RegFunction("OpenModul", OpenModul);
- L.RegFunction("OpenWebview", OpenWebview);
- L.RegFunction("OpenGM", OpenGM);
- L.RegFunction("CloseGM", CloseGM);
- L.RegFunction("OpenCompactView", OpenCompactView);
- L.RegFunction("HasCanEnterServerJudge", HasCanEnterServerJudge);
- L.RegFunction("CanEnterServerJudge", CanEnterServerJudge);
- L.RegFunction("GetInt64TimeStamp", GetInt64TimeStamp);
- L.RegFunction("GetChannelName", GetChannelName);
- L.RegFunction("GetDeviceSystemData", GetDeviceSystemData);
- L.RegFunction("GetGameRoleInfo", GetGameRoleInfo);
- L.RegFunction("ReportActivation", ReportActivation);
- L.RegFunction("ReportUpdate", ReportUpdate);
- L.RegFunction("ReportDownload", ReportDownload);
- L.RegFunction("ReportLoginUI", ReportLoginUI);
- L.RegFunction("ReportIdentification", ReportIdentification);
- L.RegFunction("ReportLoad", ReportLoad);
- L.RegFunction("ReportTutorial", ReportTutorial);
- L.RegFunction("ReportUserCertification", ReportUserCertification);
- L.RegFunction("ReportCreateRole", ReportCreateRole);
- L.RegFunction("ReportLoginRole", ReportLoginRole);
- L.RegFunction("ReportRoleEnterFail", ReportRoleEnterFail);
- L.RegFunction("ReportLogoutRole", ReportLogoutRole);
- L.RegFunction("ReportAntiAddictionKickOff", ReportAntiAddictionKickOff);
- L.RegFunction("ReportPrepaid", ReportPrepaid);
- L.RegFunction("ReportItemBuy", ReportItemBuy);
- L.RegFunction("ReportYuanbaoUse", ReportYuanbaoUse);
- L.RegFunction("ReportYuanbaoGain", ReportYuanbaoGain);
- L.RegFunction("ReportFPS", ReportFPS);
- L.RegFunction("ReportChat", ReportChat);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("sdk", get_sdk, set_sdk);
- L.RegVar("Instance", get_Instance, null);
- L.RegVar("SDKReport", get_SDKReport, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetHttpCheckUrl(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.SetHttpCheckUrl(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Init(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- GameMgr gameMgr = GameMgr.Instance;
- gameMgr.SDKInit_P();
- obj.Init();
- gameMgr.InitSdkCfg();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Login(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.Login();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Logout(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.Logout();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Pay(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 8);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- float arg4 = (float)LuaDLL.luaL_checknumber(L, 6);
- string arg5 = ToLua.CheckString(L, 7);
- string arg6 = ToLua.CheckString(L, 8);
- obj.Pay(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int EnterGame(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.EnterGame();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateRole(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.CreateRole();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ExitGame(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.ExitGame();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateRoleLv(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.UpdateRoleLv();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SwitchAccount(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.SwitchAccount();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Exit(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool o = obj.Exit();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Quit(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool o = obj.Quit();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int IsReportAction(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool o = obj.IsReportAction();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportAction(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- System.Collections.Generic.Dictionary<object,object> arg0 = (System.Collections.Generic.Dictionary<object,object>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary<object,object>));
- obj.ReportAction(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetSDKName(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string o = obj.GetSDKName();
- LuaDLL.lua_pushstring(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetLogined(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.SetLogined(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetInited(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.SetInited(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetLogined(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool o = obj.GetLogined();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetInited(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool o = obj.GetInited();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CheckSpeech(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 4);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- ChannelType arg1 = (ChannelType)ToLua.CheckObject(L, 3, typeof(ChannelType));
- string arg2 = ToLua.CheckString(L, 4);
- bool o = obj.CheckSpeech(arg0, arg1, arg2);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CheckName(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- bool o = obj.CheckName(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Decode(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.Decode(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CheckHasModul(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- SDKModulType arg0 = (SDKModulType)ToLua.CheckObject(L, 2, typeof(SDKModulType));
- bool o = obj.CheckHasModul(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OpenModul(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- SDKModulType arg0 = (SDKModulType)ToLua.CheckObject(L, 2, typeof(SDKModulType));
- obj.OpenModul(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OpenWebview(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.OpenWebview(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OpenGM(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.OpenGM();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CloseGM(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.CloseGM();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OpenCompactView(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.OpenCompactView(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int HasCanEnterServerJudge(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- bool o = obj.HasCanEnterServerJudge();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CanEnterServerJudge(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- obj.CanEnterServerJudge(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetInt64TimeStamp(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long o = obj.GetInt64TimeStamp();
- LuaDLL.tolua_pushint64(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetChannelName(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string o = obj.GetChannelName();
- LuaDLL.lua_pushstring(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetDeviceSystemData(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- DeviceSystemData o = obj.GetDeviceSystemData();
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetGameRoleInfo(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- GameRoleInfo o = obj.GetGameRoleInfo();
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportActivation(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- obj.ReportActivation(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportUpdate(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 5);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- long arg2 = LuaDLL.tolua_checkint64(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- obj.ReportUpdate(arg0, arg1, arg2, arg3);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportDownload(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 7);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
- int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
- obj.ReportDownload(arg0, arg1, arg2, arg3, arg4, arg5);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportLoginUI(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- obj.ReportLoginUI(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportIdentification(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- obj.ReportIdentification(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportLoad(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- obj.ReportLoad(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportTutorial(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 9);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- long arg4 = LuaDLL.tolua_checkint64(L, 6);
- int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
- int arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
- int arg7 = (int)LuaDLL.luaL_checknumber(L, 9);
- obj.ReportTutorial(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportUserCertification(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.ReportUserCertification();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportCreateRole(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.ReportCreateRole();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportLoginRole(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 4);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- Offline_ItemDetail arg2 = (Offline_ItemDetail)ToLua.CheckObject<Offline_ItemDetail>(L, 4);
- obj.ReportLoginRole(arg0, arg1, arg2);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportRoleEnterFail(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- obj.ReportRoleEnterFail();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportLogoutRole(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 8);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(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);
- Item_SumDetail arg6 = (Item_SumDetail)ToLua.CheckObject<Item_SumDetail>(L, 8);
- obj.ReportLogoutRole(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportAntiAddictionKickOff(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 6);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- 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);
- obj.ReportAntiAddictionKickOff(arg0, arg1, arg2, arg3, arg4);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportPrepaid(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 14);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
- int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
- int arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
- float arg7 = (float)LuaDLL.luaL_checknumber(L, 9);
- string arg8 = ToLua.CheckString(L, 10);
- int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
- int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
- long arg11 = LuaDLL.tolua_checkint64(L, 13);
- string arg12 = ToLua.CheckString(L, 14);
- obj.ReportPrepaid(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportItemBuy(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 18);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
- int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
- string arg6 = ToLua.CheckString(L, 8);
- string arg7 = ToLua.CheckString(L, 9);
- long arg8 = LuaDLL.tolua_checkint64(L, 10);
- long arg9 = LuaDLL.tolua_checkint64(L, 11);
- int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
- int arg11 = (int)LuaDLL.luaL_checknumber(L, 13);
- int arg12 = (int)LuaDLL.luaL_checknumber(L, 14);
- int arg13 = (int)LuaDLL.luaL_checknumber(L, 15);
- int arg14 = (int)LuaDLL.luaL_checknumber(L, 16);
- int arg15 = (int)LuaDLL.luaL_checknumber(L, 17);
- int arg16 = (int)LuaDLL.luaL_checknumber(L, 18);
- obj.ReportItemBuy(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportYuanbaoUse(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 13);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
- string arg5 = ToLua.CheckString(L, 7);
- YuanbaoUseDetails arg6 = (YuanbaoUseDetails)ToLua.CheckObject<YuanbaoUseDetails>(L, 8);
- int arg7 = (int)LuaDLL.luaL_checknumber(L, 9);
- int arg8 = (int)LuaDLL.luaL_checknumber(L, 10);
- int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
- int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
- long arg11 = LuaDLL.tolua_checkint64(L, 13);
- obj.ReportYuanbaoUse(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportYuanbaoGain(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 12);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
- string arg5 = ToLua.CheckString(L, 7);
- int arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
- int arg7 = (int)LuaDLL.luaL_checknumber(L, 9);
- int arg8 = (int)LuaDLL.luaL_checknumber(L, 10);
- int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
- long arg10 = LuaDLL.tolua_checkint64(L, 12);
- obj.ReportYuanbaoGain(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportFPS(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 8);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
- int[] arg5 = ToLua.CheckNumberArray<int>(L, 7);
- int[] arg6 = ToLua.CheckNumberArray<int>(L, 8);
- obj.ReportFPS(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReportChat(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 14);
- SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- string arg2 = ToLua.CheckString(L, 4);
- int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
- string arg4 = ToLua.CheckString(L, 6);
- ChannelType arg5 = (ChannelType)ToLua.CheckObject(L, 7, typeof(ChannelType));
- string arg6 = ToLua.CheckString(L, 8);
- string arg7 = ToLua.CheckString(L, 9);
- long arg8 = LuaDLL.tolua_checkint64(L, 10);
- string arg9 = ToLua.CheckString(L, 11);
- string arg10 = ToLua.CheckString(L, 12);
- int arg11 = (int)LuaDLL.luaL_checknumber(L, 13);
- string arg12 = ToLua.CheckString(L, 14);
- obj.ReportChat(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_sdk(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SDKMgr obj = (SDKMgr)o;
- SDKBase ret = obj.sdk;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sdk on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Instance(IntPtr L)
- {
- try
- {
- ToLua.Push(L, SDKMgr.Instance);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_SDKReport(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SDKMgr obj = (SDKMgr)o;
- SDKReportBase ret = obj.SDKReport;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index SDKReport on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_sdk(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SDKMgr obj = (SDKMgr)o;
- SDKBase arg0 = (SDKBase)ToLua.CheckObject<SDKBase>(L, 2);
- obj.sdk = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sdk on a nil value");
- }
- }
- }
|