SDKMgrWrap.cs 28 KB

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