SDKMgrWrap.cs 29 KB

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