SDKMgrWrap.cs 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using System.Collections.Generic;
  4. using LuaInterface;
  5. public class SDKMgrWrap
  6. {
  7. public static void Register(LuaState L)
  8. {
  9. L.BeginClass(typeof(SDKMgr), typeof(UnityEngine.MonoBehaviour), "SDKMgr");
  10. L.RegFunction("SetHttpCheckUrl", SetHttpCheckUrl);
  11. L.RegFunction("Init", Init);
  12. L.RegFunction("Login", Login);
  13. L.RegFunction("Logout", Logout);
  14. L.RegFunction("Pay", Pay);
  15. L.RegFunction("EnterGame", EnterGame);
  16. L.RegFunction("CreateRole", CreateRole);
  17. L.RegFunction("ExitGame", ExitGame);
  18. L.RegFunction("UpdateRoleLv", UpdateRoleLv);
  19. L.RegFunction("SwitchAccount", SwitchAccount);
  20. L.RegFunction("Exit", Exit);
  21. L.RegFunction("Quit", Quit);
  22. L.RegFunction("IsReportAction", IsReportAction);
  23. L.RegFunction("ReportAction", ReportAction);
  24. L.RegFunction("GetSDKName", GetSDKName);
  25. L.RegFunction("SetLogined", SetLogined);
  26. L.RegFunction("SetInited", SetInited);
  27. L.RegFunction("GetLogined", GetLogined);
  28. L.RegFunction("GetInited", GetInited);
  29. L.RegFunction("CheckSpeech", CheckSpeech);
  30. L.RegFunction("CheckName", CheckName);
  31. L.RegFunction("Decode", Decode);
  32. L.RegFunction("CheckHasModul", CheckHasModul);
  33. L.RegFunction("OpenModul", OpenModul);
  34. L.RegFunction("OpenWebview", OpenWebview);
  35. L.RegFunction("OpenGM", OpenGM);
  36. L.RegFunction("CloseGM", CloseGM);
  37. L.RegFunction("OpenCompactView", OpenCompactView);
  38. L.RegFunction("HasCanEnterServerJudge", HasCanEnterServerJudge);
  39. L.RegFunction("CanEnterServerJudge", CanEnterServerJudge);
  40. L.RegFunction("GetInt64TimeStamp", GetInt64TimeStamp);
  41. L.RegFunction("GetChannelName", GetChannelName);
  42. L.RegFunction("GetDeviceSystemData", GetDeviceSystemData);
  43. L.RegFunction("GetGameRoleInfo", GetGameRoleInfo);
  44. L.RegFunction("ReportActivation", ReportActivation);
  45. L.RegFunction("ReportUpdate", ReportUpdate);
  46. L.RegFunction("ReportDownload", ReportDownload);
  47. L.RegFunction("ReportLoginUI", ReportLoginUI);
  48. L.RegFunction("ReportIdentification", ReportIdentification);
  49. L.RegFunction("ReportLoad", ReportLoad);
  50. L.RegFunction("ReportTutorial", ReportTutorial);
  51. L.RegFunction("ReportUserCertification", ReportUserCertification);
  52. L.RegFunction("ReportCreateRole", ReportCreateRole);
  53. L.RegFunction("ReportLoginRole", ReportLoginRole);
  54. L.RegFunction("ReportRoleEnterFail", ReportRoleEnterFail);
  55. L.RegFunction("ReportLogoutRole", ReportLogoutRole);
  56. L.RegFunction("ReportAntiAddictionKickOff", ReportAntiAddictionKickOff);
  57. L.RegFunction("ReportPrepaid", ReportPrepaid);
  58. L.RegFunction("ReportItemBuy", ReportItemBuy);
  59. L.RegFunction("ReportYuanbaoUse", ReportYuanbaoUse);
  60. L.RegFunction("ReportYuanbaoGain", ReportYuanbaoGain);
  61. L.RegFunction("ReportFPS", ReportFPS);
  62. L.RegFunction("ReportChat", ReportChat);
  63. L.RegFunction("__eq", op_Equality);
  64. L.RegFunction("__tostring", ToLua.op_ToString);
  65. L.RegVar("sdk", get_sdk, set_sdk);
  66. L.RegVar("Instance", get_Instance, null);
  67. L.RegVar("SDKReport", get_SDKReport, null);
  68. L.EndClass();
  69. }
  70. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  71. static int SetHttpCheckUrl(IntPtr L)
  72. {
  73. try
  74. {
  75. ToLua.CheckArgsCount(L, 2);
  76. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  77. string arg0 = ToLua.CheckString(L, 2);
  78. obj.SetHttpCheckUrl(arg0);
  79. return 0;
  80. }
  81. catch (Exception e)
  82. {
  83. return LuaDLL.toluaL_exception(L, e);
  84. }
  85. }
  86. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  87. static int Init(IntPtr L)
  88. {
  89. try
  90. {
  91. ToLua.CheckArgsCount(L, 1);
  92. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  93. obj.Init();
  94. #if UNITY_IOS
  95. YouYiSDKiOS youYiSDKiOS = SDKMgr.Instance.sdk as YouYiSDKiOS;
  96. if (youYiSDKiOS != null)
  97. {
  98. youYiSDKiOS.qKGamesdk.InitProductCfg(ConfigMgr.Instance.getTable("IOSShopProductIDCfg"));
  99. }
  100. #endif
  101. GameMgr.Instance.InitSdkCfg();
  102. return 0;
  103. }
  104. catch (Exception e)
  105. {
  106. return LuaDLL.toluaL_exception(L, e);
  107. }
  108. }
  109. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  110. static int Login(IntPtr L)
  111. {
  112. try
  113. {
  114. ToLua.CheckArgsCount(L, 1);
  115. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  116. obj.Login();
  117. return 0;
  118. }
  119. catch (Exception e)
  120. {
  121. return LuaDLL.toluaL_exception(L, e);
  122. }
  123. }
  124. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  125. static int Logout(IntPtr L)
  126. {
  127. try
  128. {
  129. ToLua.CheckArgsCount(L, 1);
  130. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  131. obj.Logout();
  132. return 0;
  133. }
  134. catch (Exception e)
  135. {
  136. return LuaDLL.toluaL_exception(L, e);
  137. }
  138. }
  139. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  140. static int Pay(IntPtr L)
  141. {
  142. try
  143. {
  144. ToLua.CheckArgsCount(L, 8);
  145. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  146. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  147. string arg1 = ToLua.CheckString(L, 3);
  148. string arg2 = ToLua.CheckString(L, 4);
  149. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  150. float arg4 = (float)LuaDLL.luaL_checknumber(L, 6);
  151. string arg5 = ToLua.CheckString(L, 7);
  152. string arg6 = ToLua.CheckString(L, 8);
  153. obj.Pay(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  154. return 0;
  155. }
  156. catch (Exception e)
  157. {
  158. return LuaDLL.toluaL_exception(L, e);
  159. }
  160. }
  161. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  162. static int EnterGame(IntPtr L)
  163. {
  164. try
  165. {
  166. ToLua.CheckArgsCount(L, 1);
  167. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  168. obj.EnterGame();
  169. return 0;
  170. }
  171. catch (Exception e)
  172. {
  173. return LuaDLL.toluaL_exception(L, e);
  174. }
  175. }
  176. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  177. static int CreateRole(IntPtr L)
  178. {
  179. try
  180. {
  181. ToLua.CheckArgsCount(L, 1);
  182. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  183. obj.CreateRole();
  184. return 0;
  185. }
  186. catch (Exception e)
  187. {
  188. return LuaDLL.toluaL_exception(L, e);
  189. }
  190. }
  191. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  192. static int ExitGame(IntPtr L)
  193. {
  194. try
  195. {
  196. ToLua.CheckArgsCount(L, 1);
  197. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  198. obj.ExitGame();
  199. return 0;
  200. }
  201. catch (Exception e)
  202. {
  203. return LuaDLL.toluaL_exception(L, e);
  204. }
  205. }
  206. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  207. static int UpdateRoleLv(IntPtr L)
  208. {
  209. try
  210. {
  211. ToLua.CheckArgsCount(L, 1);
  212. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  213. obj.UpdateRoleLv();
  214. return 0;
  215. }
  216. catch (Exception e)
  217. {
  218. return LuaDLL.toluaL_exception(L, e);
  219. }
  220. }
  221. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  222. static int SwitchAccount(IntPtr L)
  223. {
  224. try
  225. {
  226. ToLua.CheckArgsCount(L, 1);
  227. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  228. obj.SwitchAccount();
  229. return 0;
  230. }
  231. catch (Exception e)
  232. {
  233. return LuaDLL.toluaL_exception(L, e);
  234. }
  235. }
  236. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  237. static int Exit(IntPtr L)
  238. {
  239. try
  240. {
  241. ToLua.CheckArgsCount(L, 1);
  242. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  243. bool o = obj.Exit();
  244. LuaDLL.lua_pushboolean(L, o);
  245. return 1;
  246. }
  247. catch (Exception e)
  248. {
  249. return LuaDLL.toluaL_exception(L, e);
  250. }
  251. }
  252. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  253. static int Quit(IntPtr L)
  254. {
  255. try
  256. {
  257. ToLua.CheckArgsCount(L, 1);
  258. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  259. bool o = obj.Quit();
  260. LuaDLL.lua_pushboolean(L, o);
  261. return 1;
  262. }
  263. catch (Exception e)
  264. {
  265. return LuaDLL.toluaL_exception(L, e);
  266. }
  267. }
  268. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  269. static int IsReportAction(IntPtr L)
  270. {
  271. try
  272. {
  273. ToLua.CheckArgsCount(L, 1);
  274. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  275. bool o = obj.IsReportAction();
  276. LuaDLL.lua_pushboolean(L, o);
  277. return 1;
  278. }
  279. catch (Exception e)
  280. {
  281. return LuaDLL.toluaL_exception(L, e);
  282. }
  283. }
  284. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  285. static int ReportAction(IntPtr L)
  286. {
  287. try
  288. {
  289. ToLua.CheckArgsCount(L, 2);
  290. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  291. System.Collections.Generic.Dictionary<object,object> arg0 = (System.Collections.Generic.Dictionary<object,object>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary<object,object>));
  292. obj.ReportAction(arg0);
  293. return 0;
  294. }
  295. catch (Exception e)
  296. {
  297. return LuaDLL.toluaL_exception(L, e);
  298. }
  299. }
  300. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  301. static int GetSDKName(IntPtr L)
  302. {
  303. try
  304. {
  305. ToLua.CheckArgsCount(L, 1);
  306. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  307. string o = obj.GetSDKName();
  308. LuaDLL.lua_pushstring(L, o);
  309. return 1;
  310. }
  311. catch (Exception e)
  312. {
  313. return LuaDLL.toluaL_exception(L, e);
  314. }
  315. }
  316. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  317. static int SetLogined(IntPtr L)
  318. {
  319. try
  320. {
  321. ToLua.CheckArgsCount(L, 2);
  322. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  323. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  324. obj.SetLogined(arg0);
  325. return 0;
  326. }
  327. catch (Exception e)
  328. {
  329. return LuaDLL.toluaL_exception(L, e);
  330. }
  331. }
  332. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  333. static int SetInited(IntPtr L)
  334. {
  335. try
  336. {
  337. ToLua.CheckArgsCount(L, 2);
  338. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  339. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  340. obj.SetInited(arg0);
  341. return 0;
  342. }
  343. catch (Exception e)
  344. {
  345. return LuaDLL.toluaL_exception(L, e);
  346. }
  347. }
  348. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  349. static int GetLogined(IntPtr L)
  350. {
  351. try
  352. {
  353. ToLua.CheckArgsCount(L, 1);
  354. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  355. bool o = obj.GetLogined();
  356. LuaDLL.lua_pushboolean(L, o);
  357. return 1;
  358. }
  359. catch (Exception e)
  360. {
  361. return LuaDLL.toluaL_exception(L, e);
  362. }
  363. }
  364. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  365. static int GetInited(IntPtr L)
  366. {
  367. try
  368. {
  369. ToLua.CheckArgsCount(L, 1);
  370. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  371. bool o = obj.GetInited();
  372. LuaDLL.lua_pushboolean(L, o);
  373. return 1;
  374. }
  375. catch (Exception e)
  376. {
  377. return LuaDLL.toluaL_exception(L, e);
  378. }
  379. }
  380. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  381. static int CheckSpeech(IntPtr L)
  382. {
  383. try
  384. {
  385. ToLua.CheckArgsCount(L, 4);
  386. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  387. string arg0 = ToLua.CheckString(L, 2);
  388. ChannelType arg1 = (ChannelType)ToLua.CheckObject(L, 3, typeof(ChannelType));
  389. string arg2 = ToLua.CheckString(L, 4);
  390. bool o = obj.CheckSpeech(arg0, arg1, arg2);
  391. LuaDLL.lua_pushboolean(L, o);
  392. return 1;
  393. }
  394. catch (Exception e)
  395. {
  396. return LuaDLL.toluaL_exception(L, e);
  397. }
  398. }
  399. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  400. static int CheckName(IntPtr L)
  401. {
  402. try
  403. {
  404. ToLua.CheckArgsCount(L, 2);
  405. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  406. string arg0 = ToLua.CheckString(L, 2);
  407. bool o = obj.CheckName(arg0);
  408. LuaDLL.lua_pushboolean(L, o);
  409. return 1;
  410. }
  411. catch (Exception e)
  412. {
  413. return LuaDLL.toluaL_exception(L, e);
  414. }
  415. }
  416. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  417. static int Decode(IntPtr L)
  418. {
  419. try
  420. {
  421. ToLua.CheckArgsCount(L, 2);
  422. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  423. string arg0 = ToLua.CheckString(L, 2);
  424. obj.Decode(arg0);
  425. return 0;
  426. }
  427. catch (Exception e)
  428. {
  429. return LuaDLL.toluaL_exception(L, e);
  430. }
  431. }
  432. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  433. static int CheckHasModul(IntPtr L)
  434. {
  435. try
  436. {
  437. ToLua.CheckArgsCount(L, 2);
  438. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  439. SDKModulType arg0 = (SDKModulType)ToLua.CheckObject(L, 2, typeof(SDKModulType));
  440. bool o = obj.CheckHasModul(arg0);
  441. LuaDLL.lua_pushboolean(L, o);
  442. return 1;
  443. }
  444. catch (Exception e)
  445. {
  446. return LuaDLL.toluaL_exception(L, e);
  447. }
  448. }
  449. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  450. static int OpenModul(IntPtr L)
  451. {
  452. try
  453. {
  454. ToLua.CheckArgsCount(L, 2);
  455. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  456. SDKModulType arg0 = (SDKModulType)ToLua.CheckObject(L, 2, typeof(SDKModulType));
  457. obj.OpenModul(arg0);
  458. return 0;
  459. }
  460. catch (Exception e)
  461. {
  462. return LuaDLL.toluaL_exception(L, e);
  463. }
  464. }
  465. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  466. static int OpenWebview(IntPtr L)
  467. {
  468. try
  469. {
  470. ToLua.CheckArgsCount(L, 2);
  471. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  472. string arg0 = ToLua.CheckString(L, 2);
  473. obj.OpenWebview(arg0);
  474. return 0;
  475. }
  476. catch (Exception e)
  477. {
  478. return LuaDLL.toluaL_exception(L, e);
  479. }
  480. }
  481. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  482. static int OpenGM(IntPtr L)
  483. {
  484. try
  485. {
  486. ToLua.CheckArgsCount(L, 1);
  487. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  488. obj.OpenGM();
  489. return 0;
  490. }
  491. catch (Exception e)
  492. {
  493. return LuaDLL.toluaL_exception(L, e);
  494. }
  495. }
  496. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  497. static int CloseGM(IntPtr L)
  498. {
  499. try
  500. {
  501. ToLua.CheckArgsCount(L, 1);
  502. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  503. obj.CloseGM();
  504. return 0;
  505. }
  506. catch (Exception e)
  507. {
  508. return LuaDLL.toluaL_exception(L, e);
  509. }
  510. }
  511. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  512. static int OpenCompactView(IntPtr L)
  513. {
  514. try
  515. {
  516. ToLua.CheckArgsCount(L, 2);
  517. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  518. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  519. obj.OpenCompactView(arg0);
  520. return 0;
  521. }
  522. catch (Exception e)
  523. {
  524. return LuaDLL.toluaL_exception(L, e);
  525. }
  526. }
  527. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  528. static int HasCanEnterServerJudge(IntPtr L)
  529. {
  530. try
  531. {
  532. ToLua.CheckArgsCount(L, 1);
  533. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  534. bool o = obj.HasCanEnterServerJudge();
  535. LuaDLL.lua_pushboolean(L, o);
  536. return 1;
  537. }
  538. catch (Exception e)
  539. {
  540. return LuaDLL.toluaL_exception(L, e);
  541. }
  542. }
  543. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  544. static int CanEnterServerJudge(IntPtr L)
  545. {
  546. try
  547. {
  548. ToLua.CheckArgsCount(L, 3);
  549. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  550. string arg0 = ToLua.CheckString(L, 2);
  551. string arg1 = ToLua.CheckString(L, 3);
  552. obj.CanEnterServerJudge(arg0, arg1);
  553. return 0;
  554. }
  555. catch (Exception e)
  556. {
  557. return LuaDLL.toluaL_exception(L, e);
  558. }
  559. }
  560. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  561. static int GetInt64TimeStamp(IntPtr L)
  562. {
  563. try
  564. {
  565. ToLua.CheckArgsCount(L, 1);
  566. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  567. long o = obj.GetInt64TimeStamp();
  568. LuaDLL.tolua_pushint64(L, o);
  569. return 1;
  570. }
  571. catch (Exception e)
  572. {
  573. return LuaDLL.toluaL_exception(L, e);
  574. }
  575. }
  576. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  577. static int GetChannelName(IntPtr L)
  578. {
  579. try
  580. {
  581. ToLua.CheckArgsCount(L, 1);
  582. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  583. string o = obj.GetChannelName();
  584. LuaDLL.lua_pushstring(L, o);
  585. return 1;
  586. }
  587. catch (Exception e)
  588. {
  589. return LuaDLL.toluaL_exception(L, e);
  590. }
  591. }
  592. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  593. static int GetDeviceSystemData(IntPtr L)
  594. {
  595. try
  596. {
  597. ToLua.CheckArgsCount(L, 1);
  598. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  599. DeviceSystemData o = obj.GetDeviceSystemData();
  600. ToLua.PushObject(L, o);
  601. return 1;
  602. }
  603. catch (Exception e)
  604. {
  605. return LuaDLL.toluaL_exception(L, e);
  606. }
  607. }
  608. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  609. static int GetGameRoleInfo(IntPtr L)
  610. {
  611. try
  612. {
  613. ToLua.CheckArgsCount(L, 1);
  614. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  615. GameRoleInfo o = obj.GetGameRoleInfo();
  616. ToLua.PushObject(L, o);
  617. return 1;
  618. }
  619. catch (Exception e)
  620. {
  621. return LuaDLL.toluaL_exception(L, e);
  622. }
  623. }
  624. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  625. static int ReportActivation(IntPtr L)
  626. {
  627. try
  628. {
  629. ToLua.CheckArgsCount(L, 2);
  630. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  631. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  632. obj.ReportActivation(arg0);
  633. return 0;
  634. }
  635. catch (Exception e)
  636. {
  637. return LuaDLL.toluaL_exception(L, e);
  638. }
  639. }
  640. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  641. static int ReportUpdate(IntPtr L)
  642. {
  643. try
  644. {
  645. ToLua.CheckArgsCount(L, 5);
  646. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  647. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  648. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  649. long arg2 = LuaDLL.tolua_checkint64(L, 4);
  650. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  651. obj.ReportUpdate(arg0, arg1, arg2, arg3);
  652. return 0;
  653. }
  654. catch (Exception e)
  655. {
  656. return LuaDLL.toluaL_exception(L, e);
  657. }
  658. }
  659. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  660. static int ReportDownload(IntPtr L)
  661. {
  662. try
  663. {
  664. ToLua.CheckArgsCount(L, 7);
  665. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  666. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  667. string arg1 = ToLua.CheckString(L, 3);
  668. string arg2 = ToLua.CheckString(L, 4);
  669. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  670. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  671. int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
  672. obj.ReportDownload(arg0, arg1, arg2, arg3, arg4, arg5);
  673. return 0;
  674. }
  675. catch (Exception e)
  676. {
  677. return LuaDLL.toluaL_exception(L, e);
  678. }
  679. }
  680. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  681. static int ReportLoginUI(IntPtr L)
  682. {
  683. try
  684. {
  685. ToLua.CheckArgsCount(L, 2);
  686. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  687. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  688. obj.ReportLoginUI(arg0);
  689. return 0;
  690. }
  691. catch (Exception e)
  692. {
  693. return LuaDLL.toluaL_exception(L, e);
  694. }
  695. }
  696. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  697. static int ReportIdentification(IntPtr L)
  698. {
  699. try
  700. {
  701. ToLua.CheckArgsCount(L, 2);
  702. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  703. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  704. obj.ReportIdentification(arg0);
  705. return 0;
  706. }
  707. catch (Exception e)
  708. {
  709. return LuaDLL.toluaL_exception(L, e);
  710. }
  711. }
  712. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  713. static int ReportLoad(IntPtr L)
  714. {
  715. try
  716. {
  717. ToLua.CheckArgsCount(L, 3);
  718. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  719. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  720. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  721. obj.ReportLoad(arg0, arg1);
  722. return 0;
  723. }
  724. catch (Exception e)
  725. {
  726. return LuaDLL.toluaL_exception(L, e);
  727. }
  728. }
  729. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  730. static int ReportTutorial(IntPtr L)
  731. {
  732. try
  733. {
  734. ToLua.CheckArgsCount(L, 9);
  735. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  736. string arg0 = ToLua.CheckString(L, 2);
  737. string arg1 = ToLua.CheckString(L, 3);
  738. int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
  739. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  740. long arg4 = LuaDLL.tolua_checkint64(L, 6);
  741. int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
  742. int arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
  743. int arg7 = (int)LuaDLL.luaL_checknumber(L, 9);
  744. obj.ReportTutorial(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  745. return 0;
  746. }
  747. catch (Exception e)
  748. {
  749. return LuaDLL.toluaL_exception(L, e);
  750. }
  751. }
  752. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  753. static int ReportUserCertification(IntPtr L)
  754. {
  755. try
  756. {
  757. ToLua.CheckArgsCount(L, 1);
  758. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  759. obj.ReportUserCertification();
  760. return 0;
  761. }
  762. catch (Exception e)
  763. {
  764. return LuaDLL.toluaL_exception(L, e);
  765. }
  766. }
  767. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  768. static int ReportCreateRole(IntPtr L)
  769. {
  770. try
  771. {
  772. ToLua.CheckArgsCount(L, 1);
  773. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  774. obj.ReportCreateRole();
  775. return 0;
  776. }
  777. catch (Exception e)
  778. {
  779. return LuaDLL.toluaL_exception(L, e);
  780. }
  781. }
  782. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  783. static int ReportLoginRole(IntPtr L)
  784. {
  785. try
  786. {
  787. ToLua.CheckArgsCount(L, 4);
  788. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  789. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  790. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  791. Offline_ItemDetail arg2 = (Offline_ItemDetail)ToLua.CheckObject<Offline_ItemDetail>(L, 4);
  792. obj.ReportLoginRole(arg0, arg1, arg2);
  793. return 0;
  794. }
  795. catch (Exception e)
  796. {
  797. return LuaDLL.toluaL_exception(L, e);
  798. }
  799. }
  800. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  801. static int ReportRoleEnterFail(IntPtr L)
  802. {
  803. try
  804. {
  805. ToLua.CheckArgsCount(L, 1);
  806. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  807. obj.ReportRoleEnterFail();
  808. return 0;
  809. }
  810. catch (Exception e)
  811. {
  812. return LuaDLL.toluaL_exception(L, e);
  813. }
  814. }
  815. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  816. static int ReportLogoutRole(IntPtr L)
  817. {
  818. try
  819. {
  820. ToLua.CheckArgsCount(L, 8);
  821. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  822. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  823. string arg1 = ToLua.CheckString(L, 3);
  824. string arg2 = ToLua.CheckString(L, 4);
  825. string arg3 = ToLua.CheckString(L, 5);
  826. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  827. int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
  828. Item_SumDetail arg6 = (Item_SumDetail)ToLua.CheckObject<Item_SumDetail>(L, 8);
  829. obj.ReportLogoutRole(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  830. return 0;
  831. }
  832. catch (Exception e)
  833. {
  834. return LuaDLL.toluaL_exception(L, e);
  835. }
  836. }
  837. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  838. static int ReportAntiAddictionKickOff(IntPtr L)
  839. {
  840. try
  841. {
  842. ToLua.CheckArgsCount(L, 6);
  843. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  844. string arg0 = ToLua.CheckString(L, 2);
  845. string arg1 = ToLua.CheckString(L, 3);
  846. string arg2 = ToLua.CheckString(L, 4);
  847. string arg3 = ToLua.CheckString(L, 5);
  848. string arg4 = ToLua.CheckString(L, 6);
  849. obj.ReportAntiAddictionKickOff(arg0, arg1, arg2, arg3, arg4);
  850. return 0;
  851. }
  852. catch (Exception e)
  853. {
  854. return LuaDLL.toluaL_exception(L, e);
  855. }
  856. }
  857. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  858. static int ReportPrepaid(IntPtr L)
  859. {
  860. try
  861. {
  862. ToLua.CheckArgsCount(L, 14);
  863. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  864. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  865. string arg1 = ToLua.CheckString(L, 3);
  866. string arg2 = ToLua.CheckString(L, 4);
  867. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  868. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  869. int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
  870. int arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
  871. float arg7 = (float)LuaDLL.luaL_checknumber(L, 9);
  872. string arg8 = ToLua.CheckString(L, 10);
  873. int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
  874. int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
  875. long arg11 = LuaDLL.tolua_checkint64(L, 13);
  876. string arg12 = ToLua.CheckString(L, 14);
  877. obj.ReportPrepaid(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
  878. return 0;
  879. }
  880. catch (Exception e)
  881. {
  882. return LuaDLL.toluaL_exception(L, e);
  883. }
  884. }
  885. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  886. static int ReportItemBuy(IntPtr L)
  887. {
  888. try
  889. {
  890. ToLua.CheckArgsCount(L, 18);
  891. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  892. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  893. string arg1 = ToLua.CheckString(L, 3);
  894. string arg2 = ToLua.CheckString(L, 4);
  895. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  896. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  897. int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
  898. string arg6 = ToLua.CheckString(L, 8);
  899. string arg7 = ToLua.CheckString(L, 9);
  900. long arg8 = LuaDLL.tolua_checkint64(L, 10);
  901. long arg9 = LuaDLL.tolua_checkint64(L, 11);
  902. int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
  903. int arg11 = (int)LuaDLL.luaL_checknumber(L, 13);
  904. int arg12 = (int)LuaDLL.luaL_checknumber(L, 14);
  905. int arg13 = (int)LuaDLL.luaL_checknumber(L, 15);
  906. int arg14 = (int)LuaDLL.luaL_checknumber(L, 16);
  907. int arg15 = (int)LuaDLL.luaL_checknumber(L, 17);
  908. int arg16 = (int)LuaDLL.luaL_checknumber(L, 18);
  909. obj.ReportItemBuy(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16);
  910. return 0;
  911. }
  912. catch (Exception e)
  913. {
  914. return LuaDLL.toluaL_exception(L, e);
  915. }
  916. }
  917. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  918. static int ReportYuanbaoUse(IntPtr L)
  919. {
  920. try
  921. {
  922. ToLua.CheckArgsCount(L, 13);
  923. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  924. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  925. string arg1 = ToLua.CheckString(L, 3);
  926. string arg2 = ToLua.CheckString(L, 4);
  927. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  928. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  929. string arg5 = ToLua.CheckString(L, 7);
  930. YuanbaoUseDetails arg6 = (YuanbaoUseDetails)ToLua.CheckObject<YuanbaoUseDetails>(L, 8);
  931. int arg7 = (int)LuaDLL.luaL_checknumber(L, 9);
  932. int arg8 = (int)LuaDLL.luaL_checknumber(L, 10);
  933. int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
  934. int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
  935. long arg11 = LuaDLL.tolua_checkint64(L, 13);
  936. obj.ReportYuanbaoUse(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
  937. return 0;
  938. }
  939. catch (Exception e)
  940. {
  941. return LuaDLL.toluaL_exception(L, e);
  942. }
  943. }
  944. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  945. static int ReportYuanbaoGain(IntPtr L)
  946. {
  947. try
  948. {
  949. ToLua.CheckArgsCount(L, 12);
  950. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  951. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  952. string arg1 = ToLua.CheckString(L, 3);
  953. string arg2 = ToLua.CheckString(L, 4);
  954. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  955. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  956. string arg5 = ToLua.CheckString(L, 7);
  957. int arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
  958. int arg7 = (int)LuaDLL.luaL_checknumber(L, 9);
  959. int arg8 = (int)LuaDLL.luaL_checknumber(L, 10);
  960. int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
  961. long arg10 = LuaDLL.tolua_checkint64(L, 12);
  962. obj.ReportYuanbaoGain(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  963. return 0;
  964. }
  965. catch (Exception e)
  966. {
  967. return LuaDLL.toluaL_exception(L, e);
  968. }
  969. }
  970. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  971. static int ReportFPS(IntPtr L)
  972. {
  973. try
  974. {
  975. ToLua.CheckArgsCount(L, 8);
  976. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  977. string arg0 = ToLua.CheckString(L, 2);
  978. string arg1 = ToLua.CheckString(L, 3);
  979. string arg2 = ToLua.CheckString(L, 4);
  980. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  981. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  982. int[] arg5 = ToLua.CheckNumberArray<int>(L, 7);
  983. int[] arg6 = ToLua.CheckNumberArray<int>(L, 8);
  984. obj.ReportFPS(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  985. return 0;
  986. }
  987. catch (Exception e)
  988. {
  989. return LuaDLL.toluaL_exception(L, e);
  990. }
  991. }
  992. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  993. static int ReportChat(IntPtr L)
  994. {
  995. try
  996. {
  997. ToLua.CheckArgsCount(L, 14);
  998. SDKMgr obj = (SDKMgr)ToLua.CheckObject<SDKMgr>(L, 1);
  999. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1000. string arg1 = ToLua.CheckString(L, 3);
  1001. string arg2 = ToLua.CheckString(L, 4);
  1002. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  1003. string arg4 = ToLua.CheckString(L, 6);
  1004. ChannelType arg5 = (ChannelType)ToLua.CheckObject(L, 7, typeof(ChannelType));
  1005. string arg6 = ToLua.CheckString(L, 8);
  1006. string arg7 = ToLua.CheckString(L, 9);
  1007. long arg8 = LuaDLL.tolua_checkint64(L, 10);
  1008. string arg9 = ToLua.CheckString(L, 11);
  1009. string arg10 = ToLua.CheckString(L, 12);
  1010. int arg11 = (int)LuaDLL.luaL_checknumber(L, 13);
  1011. string arg12 = ToLua.CheckString(L, 14);
  1012. obj.ReportChat(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
  1013. return 0;
  1014. }
  1015. catch (Exception e)
  1016. {
  1017. return LuaDLL.toluaL_exception(L, e);
  1018. }
  1019. }
  1020. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1021. static int op_Equality(IntPtr L)
  1022. {
  1023. try
  1024. {
  1025. ToLua.CheckArgsCount(L, 2);
  1026. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  1027. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  1028. bool o = arg0 == arg1;
  1029. LuaDLL.lua_pushboolean(L, o);
  1030. return 1;
  1031. }
  1032. catch (Exception e)
  1033. {
  1034. return LuaDLL.toluaL_exception(L, e);
  1035. }
  1036. }
  1037. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1038. static int get_sdk(IntPtr L)
  1039. {
  1040. object o = null;
  1041. try
  1042. {
  1043. o = ToLua.ToObject(L, 1);
  1044. SDKMgr obj = (SDKMgr)o;
  1045. SDKBase ret = obj.sdk;
  1046. ToLua.PushObject(L, ret);
  1047. return 1;
  1048. }
  1049. catch(Exception e)
  1050. {
  1051. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sdk on a nil value");
  1052. }
  1053. }
  1054. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1055. static int get_Instance(IntPtr L)
  1056. {
  1057. try
  1058. {
  1059. ToLua.Push(L, SDKMgr.Instance);
  1060. return 1;
  1061. }
  1062. catch (Exception e)
  1063. {
  1064. return LuaDLL.toluaL_exception(L, e);
  1065. }
  1066. }
  1067. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1068. static int get_SDKReport(IntPtr L)
  1069. {
  1070. object o = null;
  1071. try
  1072. {
  1073. o = ToLua.ToObject(L, 1);
  1074. SDKMgr obj = (SDKMgr)o;
  1075. SDKReportBase ret = obj.SDKReport;
  1076. ToLua.PushObject(L, ret);
  1077. return 1;
  1078. }
  1079. catch(Exception e)
  1080. {
  1081. return LuaDLL.toluaL_exception(L, e, o, "attempt to index SDKReport on a nil value");
  1082. }
  1083. }
  1084. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1085. static int set_sdk(IntPtr L)
  1086. {
  1087. object o = null;
  1088. try
  1089. {
  1090. o = ToLua.ToObject(L, 1);
  1091. SDKMgr obj = (SDKMgr)o;
  1092. SDKBase arg0 = (SDKBase)ToLua.CheckObject<SDKBase>(L, 2);
  1093. obj.sdk = arg0;
  1094. return 0;
  1095. }
  1096. catch(Exception e)
  1097. {
  1098. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sdk on a nil value");
  1099. }
  1100. }
  1101. }