GameMgrWrap.cs 39 KB

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