GameMgrWrap.cs 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class GameMgrWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(GameMgr), typeof(SingletonMono<GameMgr>));
  9. L.RegFunction("DoTaskByCorutine", DoTaskByCorutine);
  10. L.RegFunction("StartDetector", StartDetector);
  11. L.RegFunction("SetOnSceneLoadedLuaFunc", SetOnSceneLoadedLuaFunc);
  12. L.RegFunction("ReLogin", ReLogin);
  13. L.RegFunction("ReLoginClearData", ReLoginClearData);
  14. L.RegFunction("SetLuaPlayStoryFunc", SetLuaPlayStoryFunc);
  15. L.RegFunction("LoadCurrentBattle", LoadCurrentBattle);
  16. L.RegFunction("CloseLoading", CloseLoading);
  17. L.RegFunction("SetTeamData", SetTeamData);
  18. L.RegFunction("RefreshTeamData", RefreshTeamData);
  19. L.RegFunction("UpdateTeamSkills", UpdateTeamSkills);
  20. L.RegFunction("CreateRoleViewComplete", CreateRoleViewComplete);
  21. L.RegFunction("RefreshRoleViewComplete", RefreshRoleViewComplete);
  22. L.RegFunction("NotifyRefreshRoleView", NotifyRefreshRoleView);
  23. L.RegFunction("SetMapLevelId", SetMapLevelId);
  24. L.RegFunction("PreloadCreateRoleScene", PreloadCreateRoleScene);
  25. L.RegFunction("GotoLogin", GotoLogin);
  26. L.RegFunction("PreloadGuildLobby", PreloadGuildLobby);
  27. L.RegFunction("PreloadAllFellows", PreloadAllFellows);
  28. L.RegFunction("PreloadBattle", PreloadBattle);
  29. L.RegFunction("StartNewbieBossBattle", StartNewbieBossBattle);
  30. L.RegFunction("PreloadViewTeam", PreloadViewTeam);
  31. L.RegFunction("PreloadVersusBattle", PreloadVersusBattle);
  32. L.RegFunction("PreloadBossBattle", PreloadBossBattle);
  33. L.RegFunction("PreloadTimeBattle", PreloadTimeBattle);
  34. L.RegFunction("ReplayTimeBattle", ReplayTimeBattle);
  35. L.RegFunction("ForceStopBattle", ForceStopBattle);
  36. L.RegFunction("ShutDownBattle", ShutDownBattle);
  37. L.RegFunction("DisposeBattle", DisposeBattle);
  38. L.RegFunction("SetGameSpeed", SetGameSpeed);
  39. L.RegFunction("SaveGameSpeed", SaveGameSpeed);
  40. L.RegFunction("GetGameSpeed", GetGameSpeed);
  41. L.RegFunction("Random", Random);
  42. L.RegFunction("CalcPassedTime", CalcPassedTime);
  43. L.RegFunction("QuitGame", QuitGame);
  44. L.RegFunction("PlayDialog", PlayDialog);
  45. L.RegFunction("RequestHttpServer", RequestHttpServer);
  46. L.RegFunction("CleanUnusedAssets", CleanUnusedAssets);
  47. L.RegFunction("OpenUrl", OpenUrl);
  48. L.RegFunction("EnableAntiAliasing", EnableAntiAliasing);
  49. L.RegFunction("DisableAntiAliasing", DisableAntiAliasing);
  50. L.RegFunction("SdkInitFunc", SdkInitFunc);
  51. L.RegFunction("SdkLoginFunc", SdkLoginFunc);
  52. L.RegFunction("SdkLogoutFunc", SdkLogoutFunc);
  53. L.RegFunction("SdkPayFunc", SdkPayFunc);
  54. L.RegFunction("SdkQuestionFunc", SdkQuestionFunc);
  55. L.RegFunction("SdkCanEnterServerJudgeFunc", SdkCanEnterServerJudgeFunc);
  56. L.RegFunction("SetmOnClickReturnBtnCb", SetmOnClickReturnBtnCb);
  57. L.RegFunction("SdkInit", SdkInit);
  58. L.RegFunction("SdkLogin", SdkLogin);
  59. L.RegFunction("SdkPay", SdkPay);
  60. L.RegFunction("SdkLogout", SdkLogout);
  61. L.RegFunction("SdkExit", SdkExit);
  62. L.RegFunction("SdkShowToolbar", SdkShowToolbar);
  63. L.RegFunction("SdkHideToolBar", SdkHideToolBar);
  64. L.RegFunction("ClearDifAttr", ClearDifAttr);
  65. L.RegFunction("AddDifAttr", AddDifAttr);
  66. L.RegFunction("AddDifAttrs", AddDifAttrs);
  67. L.RegFunction("__eq", op_Equality);
  68. L.RegFunction("__tostring", ToLua.op_ToString);
  69. L.RegVar("VersionUpdateState", get_VersionUpdateState, null);
  70. L.RegVar("LoginState", get_LoginState, null);
  71. L.RegVar("LoadingState", get_LoadingState, null);
  72. L.RegVar("BattleState", get_BattleState, null);
  73. L.RegVar("RandSeed", get_RandSeed, set_RandSeed);
  74. L.RegVar("mGameSpeed", get_mGameSpeed, set_mGameSpeed);
  75. L.RegVar("GameVersion", get_GameVersion, null);
  76. L.RegVar("ResVersion", get_ResVersion, null);
  77. L.RegVar("IsSingle", get_IsSingle, null);
  78. L.RegVar("GameSpeed", get_GameSpeed, null);
  79. L.RegVar("Instance", get_Instance, null);
  80. L.RegVar("InStartDungeon", get_InStartDungeon, null);
  81. L.RegVar("IsEditorMode", get_IsEditorMode, null);
  82. L.RegVar("CreateMaleRoot", get_CreateMaleRoot, null);
  83. L.RegVar("CreateFemaleRoot", get_CreateFemaleRoot, null);
  84. L.RegVar("CreateShowRoot", get_CreateShowRoot, null);
  85. L.RegVar("NetStatus", get_NetStatus, null);
  86. L.RegVar("CharacterInfo", get_CharacterInfo, null);
  87. L.RegVar("DeviceId", get_DeviceId, null);
  88. L.RegVar("CurLangKey", get_CurLangKey, set_CurLangKey);
  89. L.RegVar("IsMobileDevice", get_IsMobileDevice, null);
  90. L.RegVar("IsBadDevice", get_IsBadDevice, null);
  91. L.RegVar("IsNormalDevice", get_IsNormalDevice, null);
  92. L.RegVar("IsGoodDevice", get_IsGoodDevice, null);
  93. L.RegVar("maxFrameTime", get_maxFrameTime, null);
  94. L.EndClass();
  95. }
  96. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  97. static int DoTaskByCorutine(IntPtr L)
  98. {
  99. try
  100. {
  101. ToLua.CheckArgsCount(L, 2);
  102. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  103. System.Func<System.Collections.IEnumerator> arg0 = (System.Func<System.Collections.IEnumerator>)ToLua.CheckDelegate<System.Func<System.Collections.IEnumerator>>(L, 2);
  104. obj.DoTaskByCorutine(arg0);
  105. return 0;
  106. }
  107. catch (Exception e)
  108. {
  109. return LuaDLL.toluaL_exception(L, e);
  110. }
  111. }
  112. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  113. static int StartDetector(IntPtr L)
  114. {
  115. try
  116. {
  117. ToLua.CheckArgsCount(L, 1);
  118. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  119. obj.StartDetector();
  120. return 0;
  121. }
  122. catch (Exception e)
  123. {
  124. return LuaDLL.toluaL_exception(L, e);
  125. }
  126. }
  127. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  128. static int SetOnSceneLoadedLuaFunc(IntPtr L)
  129. {
  130. try
  131. {
  132. ToLua.CheckArgsCount(L, 2);
  133. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  134. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  135. obj.SetOnSceneLoadedLuaFunc(arg0);
  136. return 0;
  137. }
  138. catch (Exception e)
  139. {
  140. return LuaDLL.toluaL_exception(L, e);
  141. }
  142. }
  143. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  144. static int ReLogin(IntPtr L)
  145. {
  146. try
  147. {
  148. ToLua.CheckArgsCount(L, 1);
  149. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  150. obj.ReLogin();
  151. return 0;
  152. }
  153. catch (Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e);
  156. }
  157. }
  158. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  159. static int ReLoginClearData(IntPtr L)
  160. {
  161. try
  162. {
  163. ToLua.CheckArgsCount(L, 1);
  164. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  165. obj.ReLoginClearData();
  166. return 0;
  167. }
  168. catch (Exception e)
  169. {
  170. return LuaDLL.toluaL_exception(L, e);
  171. }
  172. }
  173. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  174. static int SetLuaPlayStoryFunc(IntPtr L)
  175. {
  176. try
  177. {
  178. ToLua.CheckArgsCount(L, 2);
  179. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  180. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  181. obj.SetLuaPlayStoryFunc(arg0);
  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 LoadCurrentBattle(IntPtr L)
  191. {
  192. try
  193. {
  194. ToLua.CheckArgsCount(L, 1);
  195. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  196. obj.LoadCurrentBattle();
  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 CloseLoading(IntPtr L)
  206. {
  207. try
  208. {
  209. ToLua.CheckArgsCount(L, 1);
  210. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  211. obj.CloseLoading();
  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 SetTeamData(IntPtr L)
  221. {
  222. try
  223. {
  224. ToLua.CheckArgsCount(L, 3);
  225. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  226. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  227. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  228. obj.SetTeamData(arg0, arg1);
  229. return 0;
  230. }
  231. catch (Exception e)
  232. {
  233. return LuaDLL.toluaL_exception(L, e);
  234. }
  235. }
  236. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  237. static int RefreshTeamData(IntPtr L)
  238. {
  239. try
  240. {
  241. ToLua.CheckArgsCount(L, 1);
  242. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  243. obj.RefreshTeamData();
  244. return 0;
  245. }
  246. catch (Exception e)
  247. {
  248. return LuaDLL.toluaL_exception(L, e);
  249. }
  250. }
  251. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  252. static int UpdateTeamSkills(IntPtr L)
  253. {
  254. try
  255. {
  256. ToLua.CheckArgsCount(L, 2);
  257. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  258. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  259. obj.UpdateTeamSkills(arg0);
  260. return 0;
  261. }
  262. catch (Exception e)
  263. {
  264. return LuaDLL.toluaL_exception(L, e);
  265. }
  266. }
  267. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  268. static int CreateRoleViewComplete(IntPtr L)
  269. {
  270. try
  271. {
  272. ToLua.CheckArgsCount(L, 2);
  273. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  274. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
  275. obj.CreateRoleViewComplete(arg0);
  276. return 0;
  277. }
  278. catch (Exception e)
  279. {
  280. return LuaDLL.toluaL_exception(L, e);
  281. }
  282. }
  283. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  284. static int RefreshRoleViewComplete(IntPtr L)
  285. {
  286. try
  287. {
  288. ToLua.CheckArgsCount(L, 3);
  289. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  290. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
  291. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  292. obj.RefreshRoleViewComplete(arg0, arg1);
  293. return 0;
  294. }
  295. catch (Exception e)
  296. {
  297. return LuaDLL.toluaL_exception(L, e);
  298. }
  299. }
  300. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  301. static int NotifyRefreshRoleView(IntPtr L)
  302. {
  303. try
  304. {
  305. ToLua.CheckArgsCount(L, 1);
  306. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  307. obj.NotifyRefreshRoleView();
  308. return 0;
  309. }
  310. catch (Exception e)
  311. {
  312. return LuaDLL.toluaL_exception(L, e);
  313. }
  314. }
  315. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  316. static int SetMapLevelId(IntPtr L)
  317. {
  318. try
  319. {
  320. ToLua.CheckArgsCount(L, 3);
  321. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  322. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  323. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  324. obj.SetMapLevelId(arg0, arg1);
  325. return 0;
  326. }
  327. catch (Exception e)
  328. {
  329. return LuaDLL.toluaL_exception(L, e);
  330. }
  331. }
  332. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  333. static int PreloadCreateRoleScene(IntPtr L)
  334. {
  335. try
  336. {
  337. ToLua.CheckArgsCount(L, 1);
  338. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  339. obj.PreloadCreateRoleScene();
  340. return 0;
  341. }
  342. catch (Exception e)
  343. {
  344. return LuaDLL.toluaL_exception(L, e);
  345. }
  346. }
  347. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  348. static int GotoLogin(IntPtr L)
  349. {
  350. try
  351. {
  352. ToLua.CheckArgsCount(L, 1);
  353. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  354. obj.GotoLogin();
  355. return 0;
  356. }
  357. catch (Exception e)
  358. {
  359. return LuaDLL.toluaL_exception(L, e);
  360. }
  361. }
  362. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  363. static int PreloadGuildLobby(IntPtr L)
  364. {
  365. try
  366. {
  367. ToLua.CheckArgsCount(L, 1);
  368. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  369. obj.PreloadGuildLobby();
  370. return 0;
  371. }
  372. catch (Exception e)
  373. {
  374. return LuaDLL.toluaL_exception(L, e);
  375. }
  376. }
  377. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  378. static int PreloadAllFellows(IntPtr L)
  379. {
  380. try
  381. {
  382. ToLua.CheckArgsCount(L, 2);
  383. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  384. ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
  385. obj.PreloadAllFellows(arg0);
  386. return 0;
  387. }
  388. catch (Exception e)
  389. {
  390. return LuaDLL.toluaL_exception(L, e);
  391. }
  392. }
  393. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  394. static int PreloadBattle(IntPtr L)
  395. {
  396. try
  397. {
  398. ToLua.CheckArgsCount(L, 2);
  399. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  400. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  401. obj.PreloadBattle(arg0);
  402. return 0;
  403. }
  404. catch (Exception e)
  405. {
  406. return LuaDLL.toluaL_exception(L, e);
  407. }
  408. }
  409. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  410. static int StartNewbieBossBattle(IntPtr L)
  411. {
  412. try
  413. {
  414. ToLua.CheckArgsCount(L, 3);
  415. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  416. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  417. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  418. System.Collections.Generic.List<ActorData> o = obj.StartNewbieBossBattle(arg0, arg1);
  419. ToLua.PushSealed(L, o);
  420. return 1;
  421. }
  422. catch (Exception e)
  423. {
  424. return LuaDLL.toluaL_exception(L, e);
  425. }
  426. }
  427. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  428. static int PreloadViewTeam(IntPtr L)
  429. {
  430. try
  431. {
  432. ToLua.CheckArgsCount(L, 4);
  433. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  434. ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
  435. string arg1 = ToLua.CheckString(L, 3);
  436. LuaTable arg2 = ToLua.CheckLuaTable(L, 4);
  437. obj.PreloadViewTeam(arg0, arg1, arg2);
  438. return 0;
  439. }
  440. catch (Exception e)
  441. {
  442. return LuaDLL.toluaL_exception(L, e);
  443. }
  444. }
  445. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  446. static int PreloadVersusBattle(IntPtr L)
  447. {
  448. try
  449. {
  450. ToLua.CheckArgsCount(L, 11);
  451. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  452. BattleSubMode arg0 = (BattleSubMode)ToLua.CheckObject(L, 2, typeof(BattleSubMode));
  453. ActorData[] arg1 = ToLua.CheckObjectArray<ActorData>(L, 3);
  454. ActorData[] arg2 = ToLua.CheckObjectArray<ActorData>(L, 4);
  455. string arg3 = ToLua.CheckString(L, 5);
  456. float arg4 = (float)LuaDLL.luaL_checknumber(L, 6);
  457. BattleEndCondition[] arg5 = ToLua.CheckObjectArray<BattleEndCondition>(L, 7);
  458. GvGMark[] arg6 = ToLua.CheckObjectArray<GvGMark>(L, 8);
  459. GvGMark[] arg7 = ToLua.CheckObjectArray<GvGMark>(L, 9);
  460. bool arg8 = LuaDLL.luaL_checkboolean(L, 10);
  461. int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
  462. obj.PreloadVersusBattle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
  463. return 0;
  464. }
  465. catch (Exception e)
  466. {
  467. return LuaDLL.toluaL_exception(L, e);
  468. }
  469. }
  470. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  471. static int PreloadBossBattle(IntPtr L)
  472. {
  473. try
  474. {
  475. ToLua.CheckArgsCount(L, 5);
  476. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  477. ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
  478. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  479. int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
  480. BattleEndCondition[] arg3 = ToLua.CheckObjectArray<BattleEndCondition>(L, 5);
  481. obj.PreloadBossBattle(arg0, arg1, arg2, arg3);
  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 PreloadTimeBattle(IntPtr L)
  491. {
  492. try
  493. {
  494. ToLua.CheckArgsCount(L, 14);
  495. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  496. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  497. BattleSubMode arg1 = (BattleSubMode)ToLua.CheckObject(L, 3, typeof(BattleSubMode));
  498. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  499. string arg3 = ToLua.CheckString(L, 5);
  500. string arg4 = ToLua.CheckString(L, 6);
  501. ActorData[] arg5 = ToLua.CheckObjectArray<ActorData>(L, 7);
  502. ActorData[] arg6 = ToLua.CheckObjectArray<ActorData>(L, 8);
  503. ServerFighterParam[] arg7 = ToLua.CheckObjectArray<ServerFighterParam>(L, 9);
  504. BattleEndCondition[] arg8 = ToLua.CheckObjectArray<BattleEndCondition>(L, 10);
  505. ValType[] arg9 = ToLua.CheckStructArray<ValType>(L, 11);
  506. int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
  507. GvGMark[] arg11 = ToLua.CheckObjectArray<GvGMark>(L, 13);
  508. GvGMark[] arg12 = ToLua.CheckObjectArray<GvGMark>(L, 14);
  509. bool o = obj.PreloadTimeBattle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
  510. LuaDLL.lua_pushboolean(L, o);
  511. return 1;
  512. }
  513. catch (Exception e)
  514. {
  515. return LuaDLL.toluaL_exception(L, e);
  516. }
  517. }
  518. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  519. static int ReplayTimeBattle(IntPtr L)
  520. {
  521. try
  522. {
  523. ToLua.CheckArgsCount(L, 7);
  524. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  525. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  526. BattleSubMode arg1 = (BattleSubMode)ToLua.CheckObject(L, 3, typeof(BattleSubMode));
  527. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  528. string arg3 = ToLua.CheckString(L, 5);
  529. string arg4 = ToLua.CheckString(L, 6);
  530. string arg5 = ToLua.CheckString(L, 7);
  531. bool o = obj.ReplayTimeBattle(arg0, arg1, arg2, arg3, arg4, arg5);
  532. LuaDLL.lua_pushboolean(L, o);
  533. return 1;
  534. }
  535. catch (Exception e)
  536. {
  537. return LuaDLL.toluaL_exception(L, e);
  538. }
  539. }
  540. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  541. static int ForceStopBattle(IntPtr L)
  542. {
  543. try
  544. {
  545. ToLua.CheckArgsCount(L, 1);
  546. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  547. obj.ForceStopBattle();
  548. return 0;
  549. }
  550. catch (Exception e)
  551. {
  552. return LuaDLL.toluaL_exception(L, e);
  553. }
  554. }
  555. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  556. static int ShutDownBattle(IntPtr L)
  557. {
  558. try
  559. {
  560. int count = LuaDLL.lua_gettop(L);
  561. if (count == 1)
  562. {
  563. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  564. obj.ShutDownBattle();
  565. return 0;
  566. }
  567. else if (count == 2)
  568. {
  569. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  570. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  571. obj.ShutDownBattle(arg0);
  572. return 0;
  573. }
  574. else
  575. {
  576. return LuaDLL.luaL_throw(L, "invalid arguments to method: GameMgr.ShutDownBattle");
  577. }
  578. }
  579. catch (Exception e)
  580. {
  581. return LuaDLL.toluaL_exception(L, e);
  582. }
  583. }
  584. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  585. static int DisposeBattle(IntPtr L)
  586. {
  587. try
  588. {
  589. ToLua.CheckArgsCount(L, 1);
  590. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  591. obj.DisposeBattle();
  592. return 0;
  593. }
  594. catch (Exception e)
  595. {
  596. return LuaDLL.toluaL_exception(L, e);
  597. }
  598. }
  599. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  600. static int SetGameSpeed(IntPtr L)
  601. {
  602. try
  603. {
  604. ToLua.CheckArgsCount(L, 2);
  605. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  606. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  607. obj.SetGameSpeed(arg0);
  608. return 0;
  609. }
  610. catch (Exception e)
  611. {
  612. return LuaDLL.toluaL_exception(L, e);
  613. }
  614. }
  615. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  616. static int SaveGameSpeed(IntPtr L)
  617. {
  618. try
  619. {
  620. ToLua.CheckArgsCount(L, 2);
  621. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  622. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  623. obj.SaveGameSpeed(arg0);
  624. return 0;
  625. }
  626. catch (Exception e)
  627. {
  628. return LuaDLL.toluaL_exception(L, e);
  629. }
  630. }
  631. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  632. static int GetGameSpeed(IntPtr L)
  633. {
  634. try
  635. {
  636. ToLua.CheckArgsCount(L, 1);
  637. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  638. float o = obj.GetGameSpeed();
  639. LuaDLL.lua_pushnumber(L, o);
  640. return 1;
  641. }
  642. catch (Exception e)
  643. {
  644. return LuaDLL.toluaL_exception(L, e);
  645. }
  646. }
  647. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  648. static int Random(IntPtr L)
  649. {
  650. try
  651. {
  652. ToLua.CheckArgsCount(L, 3);
  653. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  654. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  655. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  656. int o = obj.Random(arg0, arg1);
  657. LuaDLL.lua_pushinteger(L, o);
  658. return 1;
  659. }
  660. catch (Exception e)
  661. {
  662. return LuaDLL.toluaL_exception(L, e);
  663. }
  664. }
  665. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  666. static int CalcPassedTime(IntPtr L)
  667. {
  668. try
  669. {
  670. ToLua.CheckArgsCount(L, 2);
  671. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  672. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  673. uint o = obj.CalcPassedTime(arg0);
  674. LuaDLL.lua_pushnumber(L, o);
  675. return 1;
  676. }
  677. catch (Exception e)
  678. {
  679. return LuaDLL.toluaL_exception(L, e);
  680. }
  681. }
  682. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  683. static int QuitGame(IntPtr L)
  684. {
  685. try
  686. {
  687. int count = LuaDLL.lua_gettop(L);
  688. if (count == 1)
  689. {
  690. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  691. obj.QuitGame();
  692. return 0;
  693. }
  694. else if (count == 2)
  695. {
  696. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  697. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  698. obj.QuitGame(arg0);
  699. return 0;
  700. }
  701. else
  702. {
  703. return LuaDLL.luaL_throw(L, "invalid arguments to method: GameMgr.QuitGame");
  704. }
  705. }
  706. catch (Exception e)
  707. {
  708. return LuaDLL.toluaL_exception(L, e);
  709. }
  710. }
  711. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  712. static int PlayDialog(IntPtr L)
  713. {
  714. try
  715. {
  716. int count = LuaDLL.lua_gettop(L);
  717. if (count == 2)
  718. {
  719. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  720. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  721. obj.PlayDialog(arg0);
  722. return 0;
  723. }
  724. else if (count == 3)
  725. {
  726. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  727. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  728. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  729. obj.PlayDialog(arg0, arg1);
  730. return 0;
  731. }
  732. else
  733. {
  734. return LuaDLL.luaL_throw(L, "invalid arguments to method: GameMgr.PlayDialog");
  735. }
  736. }
  737. catch (Exception e)
  738. {
  739. return LuaDLL.toluaL_exception(L, e);
  740. }
  741. }
  742. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  743. static int RequestHttpServer(IntPtr L)
  744. {
  745. try
  746. {
  747. ToLua.CheckArgsCount(L, 3);
  748. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  749. string arg0 = ToLua.CheckString(L, 2);
  750. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  751. obj.RequestHttpServer(arg0, arg1);
  752. return 0;
  753. }
  754. catch (Exception e)
  755. {
  756. return LuaDLL.toluaL_exception(L, e);
  757. }
  758. }
  759. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  760. static int CleanUnusedAssets(IntPtr L)
  761. {
  762. try
  763. {
  764. ToLua.CheckArgsCount(L, 1);
  765. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  766. obj.CleanUnusedAssets();
  767. return 0;
  768. }
  769. catch (Exception e)
  770. {
  771. return LuaDLL.toluaL_exception(L, e);
  772. }
  773. }
  774. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  775. static int OpenUrl(IntPtr L)
  776. {
  777. try
  778. {
  779. ToLua.CheckArgsCount(L, 2);
  780. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  781. string arg0 = ToLua.CheckString(L, 2);
  782. obj.OpenUrl(arg0);
  783. return 0;
  784. }
  785. catch (Exception e)
  786. {
  787. return LuaDLL.toluaL_exception(L, e);
  788. }
  789. }
  790. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  791. static int EnableAntiAliasing(IntPtr L)
  792. {
  793. try
  794. {
  795. ToLua.CheckArgsCount(L, 1);
  796. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  797. obj.EnableAntiAliasing();
  798. return 0;
  799. }
  800. catch (Exception e)
  801. {
  802. return LuaDLL.toluaL_exception(L, e);
  803. }
  804. }
  805. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  806. static int DisableAntiAliasing(IntPtr L)
  807. {
  808. try
  809. {
  810. ToLua.CheckArgsCount(L, 1);
  811. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  812. obj.DisableAntiAliasing();
  813. return 0;
  814. }
  815. catch (Exception e)
  816. {
  817. return LuaDLL.toluaL_exception(L, e);
  818. }
  819. }
  820. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  821. static int SdkInitFunc(IntPtr L)
  822. {
  823. try
  824. {
  825. ToLua.CheckArgsCount(L, 2);
  826. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  827. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  828. obj.SdkInitFunc(arg0);
  829. return 0;
  830. }
  831. catch (Exception e)
  832. {
  833. return LuaDLL.toluaL_exception(L, e);
  834. }
  835. }
  836. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  837. static int SdkLoginFunc(IntPtr L)
  838. {
  839. try
  840. {
  841. ToLua.CheckArgsCount(L, 2);
  842. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  843. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  844. obj.SdkLoginFunc(arg0);
  845. return 0;
  846. }
  847. catch (Exception e)
  848. {
  849. return LuaDLL.toluaL_exception(L, e);
  850. }
  851. }
  852. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  853. static int SdkLogoutFunc(IntPtr L)
  854. {
  855. try
  856. {
  857. ToLua.CheckArgsCount(L, 2);
  858. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  859. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  860. obj.SdkLogoutFunc(arg0);
  861. return 0;
  862. }
  863. catch (Exception e)
  864. {
  865. return LuaDLL.toluaL_exception(L, e);
  866. }
  867. }
  868. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  869. static int SdkPayFunc(IntPtr L)
  870. {
  871. try
  872. {
  873. ToLua.CheckArgsCount(L, 2);
  874. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  875. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  876. obj.SdkPayFunc(arg0);
  877. return 0;
  878. }
  879. catch (Exception e)
  880. {
  881. return LuaDLL.toluaL_exception(L, e);
  882. }
  883. }
  884. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  885. static int SdkQuestionFunc(IntPtr L)
  886. {
  887. try
  888. {
  889. ToLua.CheckArgsCount(L, 2);
  890. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  891. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  892. obj.SdkQuestionFunc(arg0);
  893. return 0;
  894. }
  895. catch (Exception e)
  896. {
  897. return LuaDLL.toluaL_exception(L, e);
  898. }
  899. }
  900. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  901. static int SdkCanEnterServerJudgeFunc(IntPtr L)
  902. {
  903. try
  904. {
  905. ToLua.CheckArgsCount(L, 2);
  906. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  907. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  908. obj.SdkCanEnterServerJudgeFunc(arg0);
  909. return 0;
  910. }
  911. catch (Exception e)
  912. {
  913. return LuaDLL.toluaL_exception(L, e);
  914. }
  915. }
  916. //SetmOnClickReturnBtnCb
  917. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  918. static int SetmOnClickReturnBtnCb(IntPtr L)
  919. {
  920. try
  921. {
  922. ToLua.CheckArgsCount(L, 2);
  923. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  924. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  925. obj.SetmOnClickReturnBtnCb(arg0);
  926. return 0;
  927. }
  928. catch (Exception e)
  929. {
  930. return LuaDLL.toluaL_exception(L, e);
  931. }
  932. }
  933. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  934. static int SdkInit(IntPtr L)
  935. {
  936. try
  937. {
  938. ToLua.CheckArgsCount(L, 1);
  939. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  940. obj.SdkInit();
  941. return 0;
  942. }
  943. catch (Exception e)
  944. {
  945. return LuaDLL.toluaL_exception(L, e);
  946. }
  947. }
  948. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  949. static int SdkLogin(IntPtr L)
  950. {
  951. try
  952. {
  953. ToLua.CheckArgsCount(L, 1);
  954. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  955. obj.SdkLogin();
  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 SdkPay(IntPtr L)
  965. {
  966. try
  967. {
  968. ToLua.CheckArgsCount(L, 8);
  969. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  970. int arg0 = (int)LuaDLL.luaL_checknumber(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. float arg4 = (float)LuaDLL.luaL_checknumber(L, 6);
  975. string arg5 = ToLua.CheckString(L, 7);
  976. string arg6 = ToLua.CheckString(L, 8);
  977. obj.SdkPay(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 SdkLogout(IntPtr L)
  987. {
  988. try
  989. {
  990. ToLua.CheckArgsCount(L, 1);
  991. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  992. obj.SdkLogout();
  993. return 0;
  994. }
  995. catch (Exception e)
  996. {
  997. return LuaDLL.toluaL_exception(L, e);
  998. }
  999. }
  1000. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1001. static int SdkExit(IntPtr L)
  1002. {
  1003. try
  1004. {
  1005. ToLua.CheckArgsCount(L, 1);
  1006. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1007. obj.SdkExit();
  1008. return 0;
  1009. }
  1010. catch (Exception e)
  1011. {
  1012. return LuaDLL.toluaL_exception(L, e);
  1013. }
  1014. }
  1015. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1016. static int SdkShowToolbar(IntPtr L)
  1017. {
  1018. try
  1019. {
  1020. ToLua.CheckArgsCount(L, 1);
  1021. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1022. obj.SdkShowToolbar();
  1023. return 0;
  1024. }
  1025. catch (Exception e)
  1026. {
  1027. return LuaDLL.toluaL_exception(L, e);
  1028. }
  1029. }
  1030. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1031. static int SdkHideToolBar(IntPtr L)
  1032. {
  1033. try
  1034. {
  1035. ToLua.CheckArgsCount(L, 1);
  1036. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1037. obj.SdkHideToolBar();
  1038. return 0;
  1039. }
  1040. catch (Exception e)
  1041. {
  1042. return LuaDLL.toluaL_exception(L, e);
  1043. }
  1044. }
  1045. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1046. static int ClearDifAttr(IntPtr L)
  1047. {
  1048. try
  1049. {
  1050. ToLua.CheckArgsCount(L, 1);
  1051. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1052. obj.ClearDifAttr();
  1053. return 0;
  1054. }
  1055. catch (Exception e)
  1056. {
  1057. return LuaDLL.toluaL_exception(L, e);
  1058. }
  1059. }
  1060. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1061. static int AddDifAttr(IntPtr L)
  1062. {
  1063. try
  1064. {
  1065. ToLua.CheckArgsCount(L, 3);
  1066. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1067. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1068. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  1069. obj.AddDifAttr(arg0, arg1);
  1070. return 0;
  1071. }
  1072. catch (Exception e)
  1073. {
  1074. return LuaDLL.toluaL_exception(L, e);
  1075. }
  1076. }
  1077. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1078. static int AddDifAttrs(IntPtr L)
  1079. {
  1080. try
  1081. {
  1082. ToLua.CheckArgsCount(L, 2);
  1083. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1084. System.Collections.Generic.Dictionary<object,object> arg0 = (System.Collections.Generic.Dictionary<object,object>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary<object,object>));
  1085. obj.AddDifAttrs(arg0);
  1086. return 0;
  1087. }
  1088. catch (Exception e)
  1089. {
  1090. return LuaDLL.toluaL_exception(L, e);
  1091. }
  1092. }
  1093. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1094. static int op_Equality(IntPtr L)
  1095. {
  1096. try
  1097. {
  1098. ToLua.CheckArgsCount(L, 2);
  1099. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  1100. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  1101. bool o = arg0 == arg1;
  1102. LuaDLL.lua_pushboolean(L, o);
  1103. return 1;
  1104. }
  1105. catch (Exception e)
  1106. {
  1107. return LuaDLL.toluaL_exception(L, e);
  1108. }
  1109. }
  1110. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1111. static int get_VersionUpdateState(IntPtr L)
  1112. {
  1113. try
  1114. {
  1115. LuaDLL.lua_pushstring(L, GameMgr.VersionUpdateState);
  1116. return 1;
  1117. }
  1118. catch (Exception e)
  1119. {
  1120. return LuaDLL.toluaL_exception(L, e);
  1121. }
  1122. }
  1123. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1124. static int get_LoginState(IntPtr L)
  1125. {
  1126. try
  1127. {
  1128. LuaDLL.lua_pushstring(L, GameMgr.LoginState);
  1129. return 1;
  1130. }
  1131. catch (Exception e)
  1132. {
  1133. return LuaDLL.toluaL_exception(L, e);
  1134. }
  1135. }
  1136. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1137. static int get_LoadingState(IntPtr L)
  1138. {
  1139. try
  1140. {
  1141. LuaDLL.lua_pushstring(L, GameMgr.LoadingState);
  1142. return 1;
  1143. }
  1144. catch (Exception e)
  1145. {
  1146. return LuaDLL.toluaL_exception(L, e);
  1147. }
  1148. }
  1149. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1150. static int get_BattleState(IntPtr L)
  1151. {
  1152. try
  1153. {
  1154. LuaDLL.lua_pushstring(L, GameMgr.BattleState);
  1155. return 1;
  1156. }
  1157. catch (Exception e)
  1158. {
  1159. return LuaDLL.toluaL_exception(L, e);
  1160. }
  1161. }
  1162. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1163. static int get_RandSeed(IntPtr L)
  1164. {
  1165. try
  1166. {
  1167. LuaDLL.lua_pushinteger(L, GameMgr.RandSeed);
  1168. return 1;
  1169. }
  1170. catch (Exception e)
  1171. {
  1172. return LuaDLL.toluaL_exception(L, e);
  1173. }
  1174. }
  1175. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1176. static int get_mGameSpeed(IntPtr L)
  1177. {
  1178. object o = null;
  1179. try
  1180. {
  1181. o = ToLua.ToObject(L, 1);
  1182. GameMgr obj = (GameMgr)o;
  1183. float ret = obj.mGameSpeed;
  1184. LuaDLL.lua_pushnumber(L, ret);
  1185. return 1;
  1186. }
  1187. catch(Exception e)
  1188. {
  1189. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mGameSpeed on a nil value");
  1190. }
  1191. }
  1192. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1193. static int get_GameVersion(IntPtr L)
  1194. {
  1195. object o = null;
  1196. try
  1197. {
  1198. o = ToLua.ToObject(L, 1);
  1199. GameMgr obj = (GameMgr)o;
  1200. string ret = obj.GameVersion;
  1201. LuaDLL.lua_pushstring(L, ret);
  1202. return 1;
  1203. }
  1204. catch(Exception e)
  1205. {
  1206. return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameVersion on a nil value");
  1207. }
  1208. }
  1209. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1210. static int get_ResVersion(IntPtr L)
  1211. {
  1212. object o = null;
  1213. try
  1214. {
  1215. o = ToLua.ToObject(L, 1);
  1216. GameMgr obj = (GameMgr)o;
  1217. string ret = obj.ResVersion;
  1218. LuaDLL.lua_pushstring(L, ret);
  1219. return 1;
  1220. }
  1221. catch(Exception e)
  1222. {
  1223. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ResVersion on a nil value");
  1224. }
  1225. }
  1226. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1227. static int get_IsSingle(IntPtr L)
  1228. {
  1229. object o = null;
  1230. try
  1231. {
  1232. o = ToLua.ToObject(L, 1);
  1233. GameMgr obj = (GameMgr)o;
  1234. bool ret = obj.IsSingle;
  1235. LuaDLL.lua_pushboolean(L, ret);
  1236. return 1;
  1237. }
  1238. catch(Exception e)
  1239. {
  1240. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsSingle on a nil value");
  1241. }
  1242. }
  1243. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1244. static int get_GameSpeed(IntPtr L)
  1245. {
  1246. object o = null;
  1247. try
  1248. {
  1249. o = ToLua.ToObject(L, 1);
  1250. GameMgr obj = (GameMgr)o;
  1251. float ret = obj.GameSpeed;
  1252. LuaDLL.lua_pushnumber(L, ret);
  1253. return 1;
  1254. }
  1255. catch(Exception e)
  1256. {
  1257. return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameSpeed on a nil value");
  1258. }
  1259. }
  1260. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1261. static int get_Instance(IntPtr L)
  1262. {
  1263. try
  1264. {
  1265. ToLua.Push(L, GameMgr.Instance);
  1266. return 1;
  1267. }
  1268. catch (Exception e)
  1269. {
  1270. return LuaDLL.toluaL_exception(L, e);
  1271. }
  1272. }
  1273. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1274. static int get_InStartDungeon(IntPtr L)
  1275. {
  1276. object o = null;
  1277. try
  1278. {
  1279. o = ToLua.ToObject(L, 1);
  1280. GameMgr obj = (GameMgr)o;
  1281. bool ret = obj.InStartDungeon;
  1282. LuaDLL.lua_pushboolean(L, ret);
  1283. return 1;
  1284. }
  1285. catch(Exception e)
  1286. {
  1287. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InStartDungeon on a nil value");
  1288. }
  1289. }
  1290. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1291. static int get_IsEditorMode(IntPtr L)
  1292. {
  1293. object o = null;
  1294. try
  1295. {
  1296. o = ToLua.ToObject(L, 1);
  1297. GameMgr obj = (GameMgr)o;
  1298. bool ret = obj.IsEditorMode;
  1299. LuaDLL.lua_pushboolean(L, ret);
  1300. return 1;
  1301. }
  1302. catch(Exception e)
  1303. {
  1304. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsEditorMode on a nil value");
  1305. }
  1306. }
  1307. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1308. static int get_CreateMaleRoot(IntPtr L)
  1309. {
  1310. object o = null;
  1311. try
  1312. {
  1313. o = ToLua.ToObject(L, 1);
  1314. GameMgr obj = (GameMgr)o;
  1315. UnityEngine.GameObject ret = obj.CreateMaleRoot;
  1316. ToLua.PushSealed(L, ret);
  1317. return 1;
  1318. }
  1319. catch(Exception e)
  1320. {
  1321. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateMaleRoot on a nil value");
  1322. }
  1323. }
  1324. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1325. static int get_CreateFemaleRoot(IntPtr L)
  1326. {
  1327. object o = null;
  1328. try
  1329. {
  1330. o = ToLua.ToObject(L, 1);
  1331. GameMgr obj = (GameMgr)o;
  1332. UnityEngine.GameObject ret = obj.CreateFemaleRoot;
  1333. ToLua.PushSealed(L, ret);
  1334. return 1;
  1335. }
  1336. catch(Exception e)
  1337. {
  1338. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateFemaleRoot on a nil value");
  1339. }
  1340. }
  1341. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1342. static int get_CreateShowRoot(IntPtr L)
  1343. {
  1344. object o = null;
  1345. try
  1346. {
  1347. o = ToLua.ToObject(L, 1);
  1348. GameMgr obj = (GameMgr)o;
  1349. UnityEngine.GameObject ret = obj.CreateShowRoot;
  1350. ToLua.PushSealed(L, ret);
  1351. return 1;
  1352. }
  1353. catch(Exception e)
  1354. {
  1355. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateShowRoot on a nil value");
  1356. }
  1357. }
  1358. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1359. static int get_NetStatus(IntPtr L)
  1360. {
  1361. object o = null;
  1362. try
  1363. {
  1364. o = ToLua.ToObject(L, 1);
  1365. GameMgr obj = (GameMgr)o;
  1366. eNetType ret = obj.NetStatus;
  1367. ToLua.Push(L, ret);
  1368. return 1;
  1369. }
  1370. catch(Exception e)
  1371. {
  1372. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NetStatus on a nil value");
  1373. }
  1374. }
  1375. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1376. static int get_CharacterInfo(IntPtr L)
  1377. {
  1378. object o = null;
  1379. try
  1380. {
  1381. o = ToLua.ToObject(L, 1);
  1382. GameMgr obj = (GameMgr)o;
  1383. MainCharacter ret = obj.CharacterInfo;
  1384. ToLua.PushObject(L, ret);
  1385. return 1;
  1386. }
  1387. catch(Exception e)
  1388. {
  1389. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CharacterInfo on a nil value");
  1390. }
  1391. }
  1392. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1393. static int get_DeviceId(IntPtr L)
  1394. {
  1395. object o = null;
  1396. try
  1397. {
  1398. o = ToLua.ToObject(L, 1);
  1399. GameMgr obj = (GameMgr)o;
  1400. string ret = obj.DeviceId;
  1401. LuaDLL.lua_pushstring(L, ret);
  1402. return 1;
  1403. }
  1404. catch(Exception e)
  1405. {
  1406. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DeviceId on a nil value");
  1407. }
  1408. }
  1409. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1410. static int get_CurLangKey(IntPtr L)
  1411. {
  1412. object o = null;
  1413. try
  1414. {
  1415. o = ToLua.ToObject(L, 1);
  1416. GameMgr obj = (GameMgr)o;
  1417. string ret = obj.CurLangKey;
  1418. LuaDLL.lua_pushstring(L, ret);
  1419. return 1;
  1420. }
  1421. catch(Exception e)
  1422. {
  1423. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurLangKey on a nil value");
  1424. }
  1425. }
  1426. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1427. static int get_IsMobileDevice(IntPtr L)
  1428. {
  1429. object o = null;
  1430. try
  1431. {
  1432. o = ToLua.ToObject(L, 1);
  1433. GameMgr obj = (GameMgr)o;
  1434. bool ret = obj.IsMobileDevice;
  1435. LuaDLL.lua_pushboolean(L, ret);
  1436. return 1;
  1437. }
  1438. catch(Exception e)
  1439. {
  1440. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsMobileDevice on a nil value");
  1441. }
  1442. }
  1443. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1444. static int get_IsBadDevice(IntPtr L)
  1445. {
  1446. object o = null;
  1447. try
  1448. {
  1449. o = ToLua.ToObject(L, 1);
  1450. GameMgr obj = (GameMgr)o;
  1451. bool ret = obj.IsBadDevice;
  1452. LuaDLL.lua_pushboolean(L, ret);
  1453. return 1;
  1454. }
  1455. catch(Exception e)
  1456. {
  1457. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsBadDevice on a nil value");
  1458. }
  1459. }
  1460. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1461. static int get_IsNormalDevice(IntPtr L)
  1462. {
  1463. object o = null;
  1464. try
  1465. {
  1466. o = ToLua.ToObject(L, 1);
  1467. GameMgr obj = (GameMgr)o;
  1468. bool ret = obj.IsNormalDevice;
  1469. LuaDLL.lua_pushboolean(L, ret);
  1470. return 1;
  1471. }
  1472. catch(Exception e)
  1473. {
  1474. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsNormalDevice on a nil value");
  1475. }
  1476. }
  1477. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1478. static int get_IsGoodDevice(IntPtr L)
  1479. {
  1480. object o = null;
  1481. try
  1482. {
  1483. o = ToLua.ToObject(L, 1);
  1484. GameMgr obj = (GameMgr)o;
  1485. bool ret = obj.IsGoodDevice;
  1486. LuaDLL.lua_pushboolean(L, ret);
  1487. return 1;
  1488. }
  1489. catch(Exception e)
  1490. {
  1491. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsGoodDevice on a nil value");
  1492. }
  1493. }
  1494. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1495. static int get_maxFrameTime(IntPtr L)
  1496. {
  1497. object o = null;
  1498. try
  1499. {
  1500. o = ToLua.ToObject(L, 1);
  1501. GameMgr obj = (GameMgr)o;
  1502. int ret = obj.maxFrameTime;
  1503. LuaDLL.lua_pushinteger(L, ret);
  1504. return 1;
  1505. }
  1506. catch(Exception e)
  1507. {
  1508. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxFrameTime on a nil value");
  1509. }
  1510. }
  1511. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1512. static int set_RandSeed(IntPtr L)
  1513. {
  1514. try
  1515. {
  1516. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1517. GameMgr.RandSeed = arg0;
  1518. return 0;
  1519. }
  1520. catch (Exception e)
  1521. {
  1522. return LuaDLL.toluaL_exception(L, e);
  1523. }
  1524. }
  1525. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1526. static int set_mGameSpeed(IntPtr L)
  1527. {
  1528. object o = null;
  1529. try
  1530. {
  1531. o = ToLua.ToObject(L, 1);
  1532. GameMgr obj = (GameMgr)o;
  1533. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1534. obj.mGameSpeed = arg0;
  1535. return 0;
  1536. }
  1537. catch(Exception e)
  1538. {
  1539. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mGameSpeed on a nil value");
  1540. }
  1541. }
  1542. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1543. static int set_CurLangKey(IntPtr L)
  1544. {
  1545. object o = null;
  1546. try
  1547. {
  1548. o = ToLua.ToObject(L, 1);
  1549. GameMgr obj = (GameMgr)o;
  1550. string arg0 = ToLua.CheckString(L, 2);
  1551. obj.CurLangKey = arg0;
  1552. return 0;
  1553. }
  1554. catch(Exception e)
  1555. {
  1556. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurLangKey on a nil value");
  1557. }
  1558. }
  1559. }