SDKMgrWrap.cs 29 KB

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