GameMgrWrap.cs 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655
  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("SdkInit", SdkInit);
  57. L.RegFunction("SdkLogin", SdkLogin);
  58. L.RegFunction("SdkPay", SdkPay);
  59. L.RegFunction("SdkLogout", SdkLogout);
  60. L.RegFunction("SdkExit", SdkExit);
  61. L.RegFunction("SdkShowToolbar", SdkShowToolbar);
  62. L.RegFunction("SdkHideToolBar", SdkHideToolBar);
  63. L.RegFunction("ClearDifAttr", ClearDifAttr);
  64. L.RegFunction("AddDifAttr", AddDifAttr);
  65. L.RegFunction("AddDifAttrs", AddDifAttrs);
  66. L.RegFunction("__eq", op_Equality);
  67. L.RegFunction("__tostring", ToLua.op_ToString);
  68. L.RegVar("VersionUpdateState", get_VersionUpdateState, null);
  69. L.RegVar("LoginState", get_LoginState, null);
  70. L.RegVar("LoadingState", get_LoadingState, null);
  71. L.RegVar("BattleState", get_BattleState, null);
  72. L.RegVar("RandSeed", get_RandSeed, set_RandSeed);
  73. L.RegVar("mGameSpeed", get_mGameSpeed, set_mGameSpeed);
  74. L.RegVar("GameVersion", get_GameVersion, null);
  75. L.RegVar("ResVersion", get_ResVersion, null);
  76. L.RegVar("IsSingle", get_IsSingle, null);
  77. L.RegVar("GameSpeed", get_GameSpeed, null);
  78. L.RegVar("Instance", get_Instance, null);
  79. L.RegVar("InStartDungeon", get_InStartDungeon, null);
  80. L.RegVar("IsEditorMode", get_IsEditorMode, null);
  81. L.RegVar("CreateMaleRoot", get_CreateMaleRoot, null);
  82. L.RegVar("CreateFemaleRoot", get_CreateFemaleRoot, null);
  83. L.RegVar("CreateShowRoot", get_CreateShowRoot, null);
  84. L.RegVar("NetStatus", get_NetStatus, null);
  85. L.RegVar("CharacterInfo", get_CharacterInfo, null);
  86. L.RegVar("DeviceId", get_DeviceId, null);
  87. L.RegVar("CurLangKey", get_CurLangKey, set_CurLangKey);
  88. L.RegVar("IsMobileDevice", get_IsMobileDevice, null);
  89. L.RegVar("IsBadDevice", get_IsBadDevice, null);
  90. L.RegVar("IsNormalDevice", get_IsNormalDevice, null);
  91. L.RegVar("IsGoodDevice", get_IsGoodDevice, null);
  92. L.RegVar("maxFrameTime", get_maxFrameTime, null);
  93. L.EndClass();
  94. }
  95. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  96. static int DoTaskByCorutine(IntPtr L)
  97. {
  98. try
  99. {
  100. ToLua.CheckArgsCount(L, 2);
  101. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  102. System.Func<System.Collections.IEnumerator> arg0 = (System.Func<System.Collections.IEnumerator>)ToLua.CheckDelegate<System.Func<System.Collections.IEnumerator>>(L, 2);
  103. obj.DoTaskByCorutine(arg0);
  104. return 0;
  105. }
  106. catch (Exception e)
  107. {
  108. return LuaDLL.toluaL_exception(L, e);
  109. }
  110. }
  111. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  112. static int StartDetector(IntPtr L)
  113. {
  114. try
  115. {
  116. ToLua.CheckArgsCount(L, 1);
  117. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  118. obj.StartDetector();
  119. return 0;
  120. }
  121. catch (Exception e)
  122. {
  123. return LuaDLL.toluaL_exception(L, e);
  124. }
  125. }
  126. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  127. static int SetOnSceneLoadedLuaFunc(IntPtr L)
  128. {
  129. try
  130. {
  131. ToLua.CheckArgsCount(L, 2);
  132. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  133. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  134. obj.SetOnSceneLoadedLuaFunc(arg0);
  135. return 0;
  136. }
  137. catch (Exception e)
  138. {
  139. return LuaDLL.toluaL_exception(L, e);
  140. }
  141. }
  142. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  143. static int ReLogin(IntPtr L)
  144. {
  145. try
  146. {
  147. ToLua.CheckArgsCount(L, 1);
  148. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  149. obj.ReLogin();
  150. return 0;
  151. }
  152. catch (Exception e)
  153. {
  154. return LuaDLL.toluaL_exception(L, e);
  155. }
  156. }
  157. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  158. static int ReLoginClearData(IntPtr L)
  159. {
  160. try
  161. {
  162. ToLua.CheckArgsCount(L, 1);
  163. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  164. obj.ReLoginClearData();
  165. return 0;
  166. }
  167. catch (Exception e)
  168. {
  169. return LuaDLL.toluaL_exception(L, e);
  170. }
  171. }
  172. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  173. static int SetLuaPlayStoryFunc(IntPtr L)
  174. {
  175. try
  176. {
  177. ToLua.CheckArgsCount(L, 2);
  178. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  179. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  180. obj.SetLuaPlayStoryFunc(arg0);
  181. return 0;
  182. }
  183. catch (Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e);
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int LoadCurrentBattle(IntPtr L)
  190. {
  191. try
  192. {
  193. ToLua.CheckArgsCount(L, 1);
  194. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  195. obj.LoadCurrentBattle();
  196. return 0;
  197. }
  198. catch (Exception e)
  199. {
  200. return LuaDLL.toluaL_exception(L, e);
  201. }
  202. }
  203. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  204. static int CloseLoading(IntPtr L)
  205. {
  206. try
  207. {
  208. ToLua.CheckArgsCount(L, 1);
  209. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  210. obj.CloseLoading();
  211. return 0;
  212. }
  213. catch (Exception e)
  214. {
  215. return LuaDLL.toluaL_exception(L, e);
  216. }
  217. }
  218. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  219. static int SetTeamData(IntPtr L)
  220. {
  221. try
  222. {
  223. ToLua.CheckArgsCount(L, 3);
  224. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  225. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  226. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  227. obj.SetTeamData(arg0, arg1);
  228. return 0;
  229. }
  230. catch (Exception e)
  231. {
  232. return LuaDLL.toluaL_exception(L, e);
  233. }
  234. }
  235. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  236. static int RefreshTeamData(IntPtr L)
  237. {
  238. try
  239. {
  240. ToLua.CheckArgsCount(L, 1);
  241. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  242. obj.RefreshTeamData();
  243. return 0;
  244. }
  245. catch (Exception e)
  246. {
  247. return LuaDLL.toluaL_exception(L, e);
  248. }
  249. }
  250. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  251. static int UpdateTeamSkills(IntPtr L)
  252. {
  253. try
  254. {
  255. ToLua.CheckArgsCount(L, 2);
  256. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  257. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  258. obj.UpdateTeamSkills(arg0);
  259. return 0;
  260. }
  261. catch (Exception e)
  262. {
  263. return LuaDLL.toluaL_exception(L, e);
  264. }
  265. }
  266. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  267. static int CreateRoleViewComplete(IntPtr L)
  268. {
  269. try
  270. {
  271. ToLua.CheckArgsCount(L, 3);
  272. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  273. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
  274. int arg1 = LuaDLL.luaL_checkinteger(L, 3);
  275. obj.CreateRoleViewComplete(arg0,arg1);
  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, 4);
  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. int arg2 = LuaDLL.luaL_checkinteger(L, 4);
  293. obj.RefreshRoleViewComplete(arg0, arg1,arg2);
  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 EnableAntiAliasing(IntPtr L)
  793. {
  794. try
  795. {
  796. ToLua.CheckArgsCount(L, 1);
  797. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  798. obj.EnableAntiAliasing();
  799. return 0;
  800. }
  801. catch (Exception e)
  802. {
  803. return LuaDLL.toluaL_exception(L, e);
  804. }
  805. }
  806. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  807. static int DisableAntiAliasing(IntPtr L)
  808. {
  809. try
  810. {
  811. ToLua.CheckArgsCount(L, 1);
  812. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  813. obj.DisableAntiAliasing();
  814. return 0;
  815. }
  816. catch (Exception e)
  817. {
  818. return LuaDLL.toluaL_exception(L, e);
  819. }
  820. }
  821. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  822. static int SdkInitFunc(IntPtr L)
  823. {
  824. try
  825. {
  826. ToLua.CheckArgsCount(L, 2);
  827. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  828. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  829. obj.SdkInitFunc(arg0);
  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 SdkLoginFunc(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.SdkLoginFunc(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 SdkLogoutFunc(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.SdkLogoutFunc(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 SdkPayFunc(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.SdkPayFunc(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 SdkQuestionFunc(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.SdkQuestionFunc(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 SdkCanEnterServerJudgeFunc(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.SdkCanEnterServerJudgeFunc(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 SdkInit(IntPtr L)
  919. {
  920. try
  921. {
  922. ToLua.CheckArgsCount(L, 1);
  923. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  924. obj.SdkInit();
  925. return 0;
  926. }
  927. catch (Exception e)
  928. {
  929. return LuaDLL.toluaL_exception(L, e);
  930. }
  931. }
  932. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  933. static int SdkLogin(IntPtr L)
  934. {
  935. try
  936. {
  937. ToLua.CheckArgsCount(L, 1);
  938. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  939. obj.SdkLogin();
  940. return 0;
  941. }
  942. catch (Exception e)
  943. {
  944. return LuaDLL.toluaL_exception(L, e);
  945. }
  946. }
  947. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  948. static int SdkPay(IntPtr L)
  949. {
  950. try
  951. {
  952. ToLua.CheckArgsCount(L, 8);
  953. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  954. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  955. string arg1 = ToLua.CheckString(L, 3);
  956. string arg2 = ToLua.CheckString(L, 4);
  957. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  958. float arg4 = (float)LuaDLL.luaL_checknumber(L, 6);
  959. string arg5 = ToLua.CheckString(L, 7);
  960. string arg6 = ToLua.CheckString(L, 8);
  961. obj.SdkPay(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  962. return 0;
  963. }
  964. catch (Exception e)
  965. {
  966. return LuaDLL.toluaL_exception(L, e);
  967. }
  968. }
  969. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  970. static int SdkLogout(IntPtr L)
  971. {
  972. try
  973. {
  974. ToLua.CheckArgsCount(L, 1);
  975. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  976. obj.SdkLogout();
  977. return 0;
  978. }
  979. catch (Exception e)
  980. {
  981. return LuaDLL.toluaL_exception(L, e);
  982. }
  983. }
  984. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  985. static int SdkExit(IntPtr L)
  986. {
  987. try
  988. {
  989. ToLua.CheckArgsCount(L, 1);
  990. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  991. obj.SdkExit();
  992. return 0;
  993. }
  994. catch (Exception e)
  995. {
  996. return LuaDLL.toluaL_exception(L, e);
  997. }
  998. }
  999. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1000. static int SdkShowToolbar(IntPtr L)
  1001. {
  1002. try
  1003. {
  1004. ToLua.CheckArgsCount(L, 1);
  1005. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1006. obj.SdkShowToolbar();
  1007. return 0;
  1008. }
  1009. catch (Exception e)
  1010. {
  1011. return LuaDLL.toluaL_exception(L, e);
  1012. }
  1013. }
  1014. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1015. static int SdkHideToolBar(IntPtr L)
  1016. {
  1017. try
  1018. {
  1019. ToLua.CheckArgsCount(L, 1);
  1020. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1021. obj.SdkHideToolBar();
  1022. return 0;
  1023. }
  1024. catch (Exception e)
  1025. {
  1026. return LuaDLL.toluaL_exception(L, e);
  1027. }
  1028. }
  1029. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1030. static int ClearDifAttr(IntPtr L)
  1031. {
  1032. try
  1033. {
  1034. ToLua.CheckArgsCount(L, 1);
  1035. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1036. obj.ClearDifAttr();
  1037. return 0;
  1038. }
  1039. catch (Exception e)
  1040. {
  1041. return LuaDLL.toluaL_exception(L, e);
  1042. }
  1043. }
  1044. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1045. static int AddDifAttr(IntPtr L)
  1046. {
  1047. try
  1048. {
  1049. ToLua.CheckArgsCount(L, 3);
  1050. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1051. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1052. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  1053. obj.AddDifAttr(arg0, arg1);
  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 AddDifAttrs(IntPtr L)
  1063. {
  1064. try
  1065. {
  1066. ToLua.CheckArgsCount(L, 2);
  1067. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1068. System.Collections.Generic.Dictionary<object,object> arg0 = (System.Collections.Generic.Dictionary<object,object>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary<object,object>));
  1069. obj.AddDifAttrs(arg0);
  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 op_Equality(IntPtr L)
  1079. {
  1080. try
  1081. {
  1082. ToLua.CheckArgsCount(L, 2);
  1083. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  1084. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  1085. bool o = arg0 == arg1;
  1086. LuaDLL.lua_pushboolean(L, o);
  1087. return 1;
  1088. }
  1089. catch (Exception e)
  1090. {
  1091. return LuaDLL.toluaL_exception(L, e);
  1092. }
  1093. }
  1094. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1095. static int get_VersionUpdateState(IntPtr L)
  1096. {
  1097. try
  1098. {
  1099. LuaDLL.lua_pushstring(L, GameMgr.VersionUpdateState);
  1100. return 1;
  1101. }
  1102. catch (Exception e)
  1103. {
  1104. return LuaDLL.toluaL_exception(L, e);
  1105. }
  1106. }
  1107. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1108. static int get_LoginState(IntPtr L)
  1109. {
  1110. try
  1111. {
  1112. LuaDLL.lua_pushstring(L, GameMgr.LoginState);
  1113. return 1;
  1114. }
  1115. catch (Exception e)
  1116. {
  1117. return LuaDLL.toluaL_exception(L, e);
  1118. }
  1119. }
  1120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1121. static int get_LoadingState(IntPtr L)
  1122. {
  1123. try
  1124. {
  1125. LuaDLL.lua_pushstring(L, GameMgr.LoadingState);
  1126. return 1;
  1127. }
  1128. catch (Exception e)
  1129. {
  1130. return LuaDLL.toluaL_exception(L, e);
  1131. }
  1132. }
  1133. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1134. static int get_BattleState(IntPtr L)
  1135. {
  1136. try
  1137. {
  1138. LuaDLL.lua_pushstring(L, GameMgr.BattleState);
  1139. return 1;
  1140. }
  1141. catch (Exception e)
  1142. {
  1143. return LuaDLL.toluaL_exception(L, e);
  1144. }
  1145. }
  1146. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1147. static int get_RandSeed(IntPtr L)
  1148. {
  1149. try
  1150. {
  1151. LuaDLL.lua_pushinteger(L, GameMgr.RandSeed);
  1152. return 1;
  1153. }
  1154. catch (Exception e)
  1155. {
  1156. return LuaDLL.toluaL_exception(L, e);
  1157. }
  1158. }
  1159. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1160. static int get_mGameSpeed(IntPtr L)
  1161. {
  1162. object o = null;
  1163. try
  1164. {
  1165. o = ToLua.ToObject(L, 1);
  1166. GameMgr obj = (GameMgr)o;
  1167. float ret = obj.mGameSpeed;
  1168. LuaDLL.lua_pushnumber(L, ret);
  1169. return 1;
  1170. }
  1171. catch(Exception e)
  1172. {
  1173. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mGameSpeed on a nil value");
  1174. }
  1175. }
  1176. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1177. static int get_GameVersion(IntPtr L)
  1178. {
  1179. object o = null;
  1180. try
  1181. {
  1182. o = ToLua.ToObject(L, 1);
  1183. GameMgr obj = (GameMgr)o;
  1184. string ret = obj.GameVersion;
  1185. LuaDLL.lua_pushstring(L, ret);
  1186. return 1;
  1187. }
  1188. catch(Exception e)
  1189. {
  1190. return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameVersion on a nil value");
  1191. }
  1192. }
  1193. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1194. static int get_ResVersion(IntPtr L)
  1195. {
  1196. object o = null;
  1197. try
  1198. {
  1199. o = ToLua.ToObject(L, 1);
  1200. GameMgr obj = (GameMgr)o;
  1201. string ret = obj.ResVersion;
  1202. LuaDLL.lua_pushstring(L, ret);
  1203. return 1;
  1204. }
  1205. catch(Exception e)
  1206. {
  1207. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ResVersion on a nil value");
  1208. }
  1209. }
  1210. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1211. static int get_IsSingle(IntPtr L)
  1212. {
  1213. object o = null;
  1214. try
  1215. {
  1216. o = ToLua.ToObject(L, 1);
  1217. GameMgr obj = (GameMgr)o;
  1218. bool ret = obj.IsSingle;
  1219. LuaDLL.lua_pushboolean(L, ret);
  1220. return 1;
  1221. }
  1222. catch(Exception e)
  1223. {
  1224. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsSingle on a nil value");
  1225. }
  1226. }
  1227. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1228. static int get_GameSpeed(IntPtr L)
  1229. {
  1230. object o = null;
  1231. try
  1232. {
  1233. o = ToLua.ToObject(L, 1);
  1234. GameMgr obj = (GameMgr)o;
  1235. float ret = obj.GameSpeed;
  1236. LuaDLL.lua_pushnumber(L, ret);
  1237. return 1;
  1238. }
  1239. catch(Exception e)
  1240. {
  1241. return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameSpeed on a nil value");
  1242. }
  1243. }
  1244. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1245. static int get_Instance(IntPtr L)
  1246. {
  1247. try
  1248. {
  1249. ToLua.Push(L, GameMgr.Instance);
  1250. return 1;
  1251. }
  1252. catch (Exception e)
  1253. {
  1254. return LuaDLL.toluaL_exception(L, e);
  1255. }
  1256. }
  1257. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1258. static int get_InStartDungeon(IntPtr L)
  1259. {
  1260. object o = null;
  1261. try
  1262. {
  1263. o = ToLua.ToObject(L, 1);
  1264. GameMgr obj = (GameMgr)o;
  1265. bool ret = obj.InStartDungeon;
  1266. LuaDLL.lua_pushboolean(L, ret);
  1267. return 1;
  1268. }
  1269. catch(Exception e)
  1270. {
  1271. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InStartDungeon on a nil value");
  1272. }
  1273. }
  1274. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1275. static int get_IsEditorMode(IntPtr L)
  1276. {
  1277. object o = null;
  1278. try
  1279. {
  1280. o = ToLua.ToObject(L, 1);
  1281. GameMgr obj = (GameMgr)o;
  1282. bool ret = obj.IsEditorMode;
  1283. LuaDLL.lua_pushboolean(L, ret);
  1284. return 1;
  1285. }
  1286. catch(Exception e)
  1287. {
  1288. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsEditorMode on a nil value");
  1289. }
  1290. }
  1291. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1292. static int get_CreateMaleRoot(IntPtr L)
  1293. {
  1294. object o = null;
  1295. try
  1296. {
  1297. o = ToLua.ToObject(L, 1);
  1298. GameMgr obj = (GameMgr)o;
  1299. UnityEngine.GameObject ret = obj.CreateMaleRoot;
  1300. ToLua.PushSealed(L, ret);
  1301. return 1;
  1302. }
  1303. catch(Exception e)
  1304. {
  1305. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateMaleRoot on a nil value");
  1306. }
  1307. }
  1308. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1309. static int get_CreateFemaleRoot(IntPtr L)
  1310. {
  1311. object o = null;
  1312. try
  1313. {
  1314. o = ToLua.ToObject(L, 1);
  1315. GameMgr obj = (GameMgr)o;
  1316. UnityEngine.GameObject ret = obj.CreateFemaleRoot;
  1317. ToLua.PushSealed(L, ret);
  1318. return 1;
  1319. }
  1320. catch(Exception e)
  1321. {
  1322. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateFemaleRoot on a nil value");
  1323. }
  1324. }
  1325. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1326. static int get_CreateShowRoot(IntPtr L)
  1327. {
  1328. object o = null;
  1329. try
  1330. {
  1331. o = ToLua.ToObject(L, 1);
  1332. GameMgr obj = (GameMgr)o;
  1333. UnityEngine.GameObject ret = obj.CreateShowRoot;
  1334. ToLua.PushSealed(L, ret);
  1335. return 1;
  1336. }
  1337. catch(Exception e)
  1338. {
  1339. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateShowRoot on a nil value");
  1340. }
  1341. }
  1342. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1343. static int get_NetStatus(IntPtr L)
  1344. {
  1345. object o = null;
  1346. try
  1347. {
  1348. o = ToLua.ToObject(L, 1);
  1349. GameMgr obj = (GameMgr)o;
  1350. eNetType ret = obj.NetStatus;
  1351. ToLua.Push(L, ret);
  1352. return 1;
  1353. }
  1354. catch(Exception e)
  1355. {
  1356. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NetStatus on a nil value");
  1357. }
  1358. }
  1359. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1360. static int get_CharacterInfo(IntPtr L)
  1361. {
  1362. object o = null;
  1363. try
  1364. {
  1365. o = ToLua.ToObject(L, 1);
  1366. GameMgr obj = (GameMgr)o;
  1367. MainCharacter ret = obj.CharacterInfo;
  1368. ToLua.PushObject(L, ret);
  1369. return 1;
  1370. }
  1371. catch(Exception e)
  1372. {
  1373. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CharacterInfo on a nil value");
  1374. }
  1375. }
  1376. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1377. static int get_DeviceId(IntPtr L)
  1378. {
  1379. object o = null;
  1380. try
  1381. {
  1382. o = ToLua.ToObject(L, 1);
  1383. GameMgr obj = (GameMgr)o;
  1384. string ret = obj.DeviceId;
  1385. LuaDLL.lua_pushstring(L, ret);
  1386. return 1;
  1387. }
  1388. catch(Exception e)
  1389. {
  1390. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DeviceId on a nil value");
  1391. }
  1392. }
  1393. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1394. static int get_CurLangKey(IntPtr L)
  1395. {
  1396. object o = null;
  1397. try
  1398. {
  1399. o = ToLua.ToObject(L, 1);
  1400. GameMgr obj = (GameMgr)o;
  1401. string ret = obj.CurLangKey;
  1402. LuaDLL.lua_pushstring(L, ret);
  1403. return 1;
  1404. }
  1405. catch(Exception e)
  1406. {
  1407. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurLangKey on a nil value");
  1408. }
  1409. }
  1410. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1411. static int get_IsMobileDevice(IntPtr L)
  1412. {
  1413. object o = null;
  1414. try
  1415. {
  1416. o = ToLua.ToObject(L, 1);
  1417. GameMgr obj = (GameMgr)o;
  1418. bool ret = obj.IsMobileDevice;
  1419. LuaDLL.lua_pushboolean(L, ret);
  1420. return 1;
  1421. }
  1422. catch(Exception e)
  1423. {
  1424. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsMobileDevice on a nil value");
  1425. }
  1426. }
  1427. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1428. static int get_IsBadDevice(IntPtr L)
  1429. {
  1430. object o = null;
  1431. try
  1432. {
  1433. o = ToLua.ToObject(L, 1);
  1434. GameMgr obj = (GameMgr)o;
  1435. bool ret = obj.IsBadDevice;
  1436. LuaDLL.lua_pushboolean(L, ret);
  1437. return 1;
  1438. }
  1439. catch(Exception e)
  1440. {
  1441. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsBadDevice on a nil value");
  1442. }
  1443. }
  1444. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1445. static int get_IsNormalDevice(IntPtr L)
  1446. {
  1447. object o = null;
  1448. try
  1449. {
  1450. o = ToLua.ToObject(L, 1);
  1451. GameMgr obj = (GameMgr)o;
  1452. bool ret = obj.IsNormalDevice;
  1453. LuaDLL.lua_pushboolean(L, ret);
  1454. return 1;
  1455. }
  1456. catch(Exception e)
  1457. {
  1458. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsNormalDevice on a nil value");
  1459. }
  1460. }
  1461. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1462. static int get_IsGoodDevice(IntPtr L)
  1463. {
  1464. object o = null;
  1465. try
  1466. {
  1467. o = ToLua.ToObject(L, 1);
  1468. GameMgr obj = (GameMgr)o;
  1469. bool ret = obj.IsGoodDevice;
  1470. LuaDLL.lua_pushboolean(L, ret);
  1471. return 1;
  1472. }
  1473. catch(Exception e)
  1474. {
  1475. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsGoodDevice on a nil value");
  1476. }
  1477. }
  1478. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1479. static int get_maxFrameTime(IntPtr L)
  1480. {
  1481. object o = null;
  1482. try
  1483. {
  1484. o = ToLua.ToObject(L, 1);
  1485. GameMgr obj = (GameMgr)o;
  1486. int ret = obj.maxFrameTime;
  1487. LuaDLL.lua_pushinteger(L, ret);
  1488. return 1;
  1489. }
  1490. catch(Exception e)
  1491. {
  1492. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxFrameTime on a nil value");
  1493. }
  1494. }
  1495. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1496. static int set_RandSeed(IntPtr L)
  1497. {
  1498. try
  1499. {
  1500. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1501. GameMgr.RandSeed = arg0;
  1502. return 0;
  1503. }
  1504. catch (Exception e)
  1505. {
  1506. return LuaDLL.toluaL_exception(L, e);
  1507. }
  1508. }
  1509. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1510. static int set_mGameSpeed(IntPtr L)
  1511. {
  1512. object o = null;
  1513. try
  1514. {
  1515. o = ToLua.ToObject(L, 1);
  1516. GameMgr obj = (GameMgr)o;
  1517. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1518. obj.mGameSpeed = arg0;
  1519. return 0;
  1520. }
  1521. catch(Exception e)
  1522. {
  1523. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mGameSpeed on a nil value");
  1524. }
  1525. }
  1526. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1527. static int set_CurLangKey(IntPtr L)
  1528. {
  1529. object o = null;
  1530. try
  1531. {
  1532. o = ToLua.ToObject(L, 1);
  1533. GameMgr obj = (GameMgr)o;
  1534. string arg0 = ToLua.CheckString(L, 2);
  1535. obj.CurLangKey = arg0;
  1536. return 0;
  1537. }
  1538. catch(Exception e)
  1539. {
  1540. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurLangKey on a nil value");
  1541. }
  1542. }
  1543. }