SDKMgrWrap.cs 29 KB

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