GameMgrWrap.cs 40 KB

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