GameMgrWrap.cs 39 KB

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