GameMgrWrap.cs 39 KB

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